亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? hooks.c

?? 很有價(jià)值的決策樹(shù)算法
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/*************************************************************************//*									 *//*	Source code for use with See5/C5.0 Release 2.04			 *//*	-----------------------------------------------			 *//*		      Copyright RuleQuest Research 2007			 *//*									 *//*	This code is provided "as is" without warranty of any kind,	 *//*	either express or implied.  All use is at your own risk.	 *//*									 *//*************************************************************************/#define	MAXLINEBUFFER	10000char	LineBuffer[MAXLINEBUFFER], *LBp=LineBuffer;/*************************************************************************//*									 *//*	Read a name from file f into string s, setting Delimiter.	 *//*									 *//*	- Embedded periods are permitted, but periods followed by space	 *//*	  characters act as delimiters.					 *//*	- Embedded spaces are permitted, but multiple spaces are	 *//*	  replaced by a single space.					 *//*	- Any character can be escaped by '\'.				 *//*	- The remainder of a line following '|' is ignored.		 *//*									 *//*************************************************************************/Boolean ReadName(FILE *f, String s, int n, char ColonOpt)/*      --------  */{    register char *Sp=s;    register int  c;    char	  Msg[2];    /*  Skip to first non-space character  */    while ( (c = InChar(f)) == '|' || Space(c) )    {	if ( c == '|' ) SkipComment;    }    /*  Return false if no names to read  */    if ( c == EOF )    {	Delimiter = EOF;	return false;    }    /*  Read in characters up to the next delimiter  */    while ( c != ColonOpt && c != ',' && c != '\n' && c != '|' && c != EOF )    {	if ( --n <= 0 )	{	    if ( Of ) Error(LONGNAME, "", "");	}	if ( c == '.' )	{	    if ( (c = InChar(f)) == '|' || Space(c) || c == EOF ) break;	    *Sp++ = '.';	    continue;	}	if ( c == '\\' )	{	    c = InChar(f);	}	if ( Space(c) )	{	    *Sp++ = ' ';	    while ( ( c = InChar(f) ) == ' ' || c == '\t' )		;	}	else	{	    *Sp++ = c;	    c = InChar(f);	}    }    if ( c == '|' ) SkipComment;    Delimiter = c;    /*  Special case for ':='  */    if ( Delimiter == ':' )    {	if ( *LBp == '=' )	{	    Delimiter = '=';	    LBp++;	}    }    /*  Strip trailing spaces  */    while ( Sp > s && Space(*(Sp-1)) ) Sp--;    if ( Sp == s )    {	Msg[0] = ( Space(c) ? '.' : c );	Msg[1] = '\00';	Error(MISSNAME, Fn, Msg);    }    *Sp++ = '\0';    return true;}/*************************************************************************//*									 *//*	Read names of classes, attributes and legal attribute values.	 *//*	On completion, names are stored in:				 *//*	  ClassName	-	class names				 *//*	  AttName	-	attribute names				 *//*	  AttValName	-	attribute value names			 *//*	with:								 *//*	  MaxAttVal	-	number of values for each attribute	 *//*									 *//*	Other global variables set are:					 *//*	  MaxAtt	-	maximum attribute number		 *//*	  MaxClass	-	maximum class number			 *//*									 *//*	Note:  until the number of attributes is known, the name	 *//*	       information is assembled in local arrays			 *//*									 *//*************************************************************************/void GetNames(FILE *Nf)/*   --------  */{    char	Buffer[1000]="", *EndBuff;    int		AttCeiling=100, ClassCeiling=100;    Attribute	Att;    ClassNo	c;    ErrMsgs = AttExIn = 0;    LineNo  = 0;    LBp     = LineBuffer;    *LBp    = 0;    MaxClass = ClassAtt = LabelAtt = CWtAtt = 0;    /*  Get class names from names file.  This entry can be:	- a list of discrete values separated by commas	- the name of the discrete attribute to use as the class	- the name of a continuous attribute followed by a colon and	  a comma-separated list of thresholds used to segment it  */    ClassName = AllocZero(ClassCeiling, String);    do    {	ReadName(Nf, Buffer, 1000, ':');	if ( ++MaxClass >= ClassCeiling)	{	    ClassCeiling += 100;	    Realloc(ClassName, ClassCeiling, String);	}	ClassName[MaxClass] = strdup(Buffer);    }    while ( Delimiter == ',' );    if ( Delimiter == ':' )    {	/*  Thresholds for continuous class attribute  */	ClassThresh = Alloc(ClassCeiling, ContValue);	MaxClass = 0;	do	{	    ReadName(Nf, Buffer, 1000, ':');	    if ( ++MaxClass >= ClassCeiling)	    {		ClassCeiling += 100;		Realloc(ClassThresh, ClassCeiling, ContValue);	    }	    ClassThresh[MaxClass] = strtod(Buffer, &EndBuff);	    if ( EndBuff == Buffer || *EndBuff != '\0' )	    {		Error(BADCLASSTHRESH, Buffer, Nil);	    }	    else	    if ( MaxClass > 1 &&		 ClassThresh[MaxClass] <= ClassThresh[MaxClass-1] )	    {		Error(LEQCLASSTHRESH, Buffer, Nil);	    }	}	while ( Delimiter == ',' );    }    /*  Get attribute and attribute value names from names file  */    AttName	  = AllocZero(AttCeiling, String);    MaxAttVal	  = AllocZero(AttCeiling, DiscrValue);    AttValName	  = AllocZero(AttCeiling, String *);    SpecialStatus = AllocZero(AttCeiling, char);    AttDef	  = AllocZero(AttCeiling, Definition);    MaxAtt = 0;    while ( ReadName(Nf, Buffer, 1000, ':') )    {	if ( Delimiter != ':' && Delimiter != '=' )	{	    Error(BADATTNAME, Buffer, "");	}	/*  Check for attributes included/excluded  */	if ( ( *Buffer == 'a' || *Buffer == 'A' ) &&	     ! memcmp(Buffer+1, "ttributes ", 10) &&	     ! memcmp(Buffer+strlen(Buffer)-6, "cluded", 6) )	{	    AttExIn = ( ! memcmp(Buffer+strlen(Buffer)-8, "in", 2) ? 1 : -1 );	    if ( AttExIn == 1 )	    {		ForEach(Att, 1, MaxAtt)		{		    SpecialStatus[Att] |= SKIP;		}	    }	    while ( ReadName(Nf, Buffer, 1000, ':') )	    {		Att = Which(Buffer, AttName, 1, MaxAtt);		if ( ! Att )		{		    Error(UNKNOWNATT, Buffer, Nil);		}		else		if ( AttExIn == 1 )		{		    SpecialStatus[Att] -= SKIP;		}		else		{		    SpecialStatus[Att] |= SKIP;		}	    }	    break;	}	if ( Which(Buffer, AttName, 1, MaxAtt) > 0 )	{	    Error(DUPATTNAME, Buffer, Nil);	}	if ( ++MaxAtt >= AttCeiling )	{	    AttCeiling += 100;	    Realloc(AttName, AttCeiling, String);	    Realloc(MaxAttVal, AttCeiling, DiscrValue);	    Realloc(AttValName, AttCeiling, String *);	    Realloc(SpecialStatus, AttCeiling, char);	    Realloc(AttDef, AttCeiling, Definition);	}	AttName[MaxAtt]       = strdup(Buffer);	SpecialStatus[MaxAtt] = Nil;	AttDef[MaxAtt]        = Nil;	MaxAttVal[MaxAtt]     = 0;	if ( Delimiter == '=' )	{	    if ( MaxClass == 1 && ! strcmp(ClassName[1], AttName[MaxAtt]) )	    {		Error(BADDEF3, Nil, Nil);	    }	    ImplicitAtt(Nf);	}	else	{	    ExplicitAtt(Nf);	}	/*  Check for case weight attribute, which must be type continuous  */	if (  ! strcmp(AttName[MaxAtt], "case weight") )	{	    CWtAtt = MaxAtt;	    if ( ! Continuous(CWtAtt) )	    {		Error(CWTATTERR, "", "");	    }	}    }    /*  Check whether class is one of the attributes  */    if ( MaxClass == 1 || ClassThresh )    {	/*  Class attribute must be present and must be either	    a discrete attribute or a thresholded continuous attribute  */	ClassAtt = Which(ClassName[1], AttName, 1, MaxAtt);	if ( ClassAtt <= 0 || Exclude(ClassAtt) )	{	    Error(NOTARGET, ClassName[1], "");	}	else	if ( ClassThresh &&	     ( ! Continuous(ClassAtt) ||	       StatBit(ClassAtt, DATEVAL|STIMEVAL|TSTMPVAL) ) )	{	    Error(BADCTARGET, ClassName[1], "");	}	else	if ( ! ClassThresh &&	     ( Continuous(ClassAtt) || StatBit(ClassAtt, DISCRETE) ) )	{	    Error(BADDTARGET, ClassName[1], "");	}	Free(ClassName[1]);	if ( ! ClassThresh )	{	    Free(ClassName);	    MaxClass  = MaxAttVal[ClassAtt];	    ClassName = AttValName[ClassAtt];	}	else	{	    /*  Set up class names as segments of continuous target att  */	    MaxClass++;	    Realloc(ClassName, MaxClass+1, String);	    sprintf(Buffer, "%s <= %g", AttName[ClassAtt], ClassThresh[1]);	    ClassName[1] = strdup(Buffer);	    ForEach(c, 2, MaxClass-1)	    {		sprintf(Buffer, "%g < %s <= %g",			ClassThresh[c-1], AttName[ClassAtt], ClassThresh[c]);		ClassName[c] = strdup(Buffer);	    }	    sprintf(Buffer, "%s > %g",		    AttName[ClassAtt], ClassThresh[MaxClass-1]);	    ClassName[MaxClass] = strdup(Buffer);	}    }    /*  Ignore case weight attribute if it is excluded; otherwise,	it cannot be used in models  */    if ( CWtAtt )    {	if ( Skip(CWtAtt) )	{	    CWtAtt = 0;	}	else	{	    SpecialStatus[CWtAtt] |= SKIP;	}    }    ClassName[0] = "?";    fclose(Nf);    if ( ErrMsgs > 0 ) Goodbye(1);}/*************************************************************************//*									 *//*	Continuous or discrete attribute				 *//*									 *//*************************************************************************/void ExplicitAtt(FILE *Nf)/*   -----------  */{    char	Buffer[1000]="", *p;    DiscrValue	v;    int		ValCeiling=100, BaseYear;    time_t	clock;    /*  Read attribute type or first discrete value  */    if ( ! ( ReadName(Nf, Buffer, 1000, ':') ) )    {	Error(EOFINATT, AttName[MaxAtt], "");    }    MaxAttVal[MaxAtt] = 0;    if ( Delimiter != ',' )    {	/*  Typed attribute  */	if ( ! strcmp(Buffer, "continuous") )	{	}	else	if ( ! strcmp(Buffer, "timestamp") )	{	    SpecialStatus[MaxAtt] = TSTMPVAL;	    /*  Set the base date if not done already  */	    if ( ! TSBase )	    {		clock = time(0);		BaseYear = gmtime(&clock)->tm_year + 1900;		SetTSBase(BaseYear);	    }	}	else	if ( ! strcmp(Buffer, "date") )	{	    SpecialStatus[MaxAtt] = DATEVAL;	}	else	if ( ! strcmp(Buffer, "time") )	{	    SpecialStatus[MaxAtt] = STIMEVAL;	}	else	if ( ! memcmp(Buffer, "discrete", 8) )	{	    SpecialStatus[MaxAtt] = DISCRETE;	    /*  Read max values and reserve space  */	    v = atoi(&Buffer[8]);	    if ( v < 2 )	    {		Error(BADDISCRETE, AttName[MaxAtt], "");	    }	    AttValName[MaxAtt] = Alloc(v+3, String);	    AttValName[MaxAtt][0] = (char *) (long) v+1;	    AttValName[MaxAtt][(MaxAttVal[MaxAtt]=1)] = strdup("N/A");	}	else	if ( ! strcmp(Buffer, "ignore") )	{	    SpecialStatus[MaxAtt] = EXCLUDE;	}	else	if ( ! strcmp(Buffer, "label") )	{	    LabelAtt = MaxAtt;	    SpecialStatus[MaxAtt] = EXCLUDE;	}	else	{	    /*  Cannot have only one discrete value for an attribute  */	    Error(SINGLEATTVAL, AttName[MaxAtt], Buffer);	}    }    else    {	/*  Discrete attribute with explicit values  */	AttValName[MaxAtt] = AllocZero(ValCeiling, String);	/*  Add "N/A" unless this attribute is the class  */	if ( MaxClass > 1 || strcmp(ClassName[1], AttName[MaxAtt]) )	{	    AttValName[MaxAtt][(MaxAttVal[MaxAtt]=1)] = strdup("N/A");	}	else	{	    MaxAttVal[MaxAtt] = 0;	}	p = Buffer;	/*  Special check for ordered attribute  */	if ( ! memcmp(Buffer, "[ordered]", 9) )	{	    SpecialStatus[MaxAtt] = ORDERED;	    for ( p = Buffer+9 ; Space(*p) ; p++ )		;	}	/*  Record first real explicit value  */	AttValName[MaxAtt][++MaxAttVal[MaxAtt]] = strdup(p);	/*  Record remaining values  */	do	{	    if ( ! ( ReadName(Nf, Buffer, 1000, ':') ) )	    {		Error(EOFINATT, AttName[MaxAtt], "");	    }	    if ( ++MaxAttVal[MaxAtt] >= ValCeiling )	    {		ValCeiling += 100;		Realloc(AttValName[MaxAtt], ValCeiling, String);	    }	    AttValName[MaxAtt][MaxAttVal[MaxAtt]] = strdup(Buffer);	}	while ( Delimiter == ',' );	/*  Cancel ordered status if <3 real values  */	if ( Ordered(MaxAtt) && MaxAttVal[MaxAtt] <= 3 )	{	    SpecialStatus[MaxAtt] = 0;	}    }}/*************************************************************************//*									 *//*	Locate value Val in List[First] to List[Last]			 *//*									 *//*************************************************************************/int Which(String Val, String *List, int First, int Last)/*  -----  */{    int	n=First;    while ( n <= Last && strcmp(Val, List[n]) ) n++;    return ( n <= Last ? n : First-1 );}/*************************************************************************//*									 *//*	Read next char keeping track of line numbers			 *//*									 *//*************************************************************************/int InChar(FILE *f)/*  ------  */{    if ( ! *LBp )    {	LBp = LineBuffer;	if ( ! fgets(LineBuffer, MAXLINEBUFFER, f) )	{	    LineBuffer[0] = '\00';	    return EOF;	}	LineNo++;    }	    return (int) *LBp++;}/*************************************************************************//*									 *//*  Read a raw case description from file Df.				 *//*									 *//*  For each attribute, read the attribute value from the file.		 *//*  If it is a discrete valued attribute, find the associated no.	 *//*  of this attribute value (if the value is unknown this is 0).	 *//*									 *//*  Returns the Description of the case (i.e. the array of		 *//*  attribute values).							 *//*									 *//*************************************************************************/#define XError(a,b,c)	Error(a,b,c)Description GetDescription(FILE *Df, Boolean Train)/*          --------------  */{    Attribute	Att;    char	Name[1000], *EndName;    int		Dv;    Description	Dummy, DVec;    ContValue	Cv;    Boolean	FirstValue=true;#if defined WIN32  && ! defined _CONSOLE     extern int	XREF;#endif    if ( ReadName(Df, Name, 1000, '\00') )    {	Dummy = AllocZero(MaxAtt+2, AttValue);	DVec = &Dummy[1];	ForEach(Att, 1, MaxAtt)	{	    if ( AttDef[Att] )	    {		DVec[Att] = EvaluateDef(AttDef[Att], DVec);		if ( Continuous(Att) )		{		    CheckValue(DVec, Att);		}		if ( SomeMiss )		{		    SomeMiss[Att] |= Unknown(DVec, Att);		    SomeNA[Att]   |= NotApplic(DVec, Att);		}		continue;	    }	    /*  Get the attribute value if don't already have it  */	    if ( ! FirstValue && ! ReadName(Df, Name, 1000, '\00') )	    {		XError(HITEOF, AttName[Att], "");		FreeLastCase(DVec);		return Nil;	    }	    FirstValue = false;	    if ( Exclude(Att) )	    {#if defined WIN32 && ! defined _CONSOLE		if ( XREF || Att == LabelAtt )#else		if ( Att == LabelAtt )

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩影院在线观看| 日韩欧美激情四射| 亚洲欧洲99久久| 91视频xxxx| 国产成人av一区二区三区在线 | 国产精品99久久久久久似苏梦涵| 欧美日韩一区小说| 天堂一区二区在线| 久久众筹精品私拍模特| 久久精品72免费观看| 色婷婷久久综合| 亚洲成人资源在线| 欧美日韩国产一区二区三区地区| 亚洲精品日韩专区silk| 在线精品观看国产| 亚洲v中文字幕| 91精品国产综合久久久久久漫画 | 色菇凉天天综合网| 国产麻豆成人精品| 日韩精品资源二区在线| 国产成人综合在线播放| 国产精品天干天干在观线| av高清久久久| 日韩经典一区二区| 久久嫩草精品久久久精品一| 高清视频一区二区| 亚洲国产精品一区二区尤物区| 91精品福利在线一区二区三区 | 日韩免费成人网| 久久69国产一区二区蜜臀| 中文字幕第一区二区| 欧美羞羞免费网站| 久久激情五月激情| 亚洲欧洲av在线| 日韩欧美一级二级三级| 91片黄在线观看| 国产精品一区二区果冻传媒| 亚洲午夜在线观看视频在线| 国产欧美日韩一区二区三区在线观看| 91国偷自产一区二区三区观看| 激情另类小说区图片区视频区| 成人污污视频在线观看| 亚洲日本在线观看| 国产日韩av一区| 精品区一区二区| 欧美videos中文字幕| 欧美精品在线一区二区| 91久久一区二区| 91性感美女视频| 韩国v欧美v日本v亚洲v| 亚洲二区在线观看| 亚洲亚洲人成综合网络| 国产精品一区二区黑丝| 久久不见久久见中文字幕免费| 午夜亚洲国产au精品一区二区| 亚洲免费观看在线观看| 一级精品视频在线观看宜春院| 一区二区三区四区视频精品免费| 国产欧美视频在线观看| 国产清纯白嫩初高生在线观看91| 精品久久久久久久久久久久久久久| 欧美久久免费观看| 91精品国产一区二区三区香蕉| 色哟哟日韩精品| 欧美高清一级片在线| 欧美日本一道本在线视频| 欧美日韩国产免费一区二区| 91麻豆精品91久久久久久清纯| 欧美精品在欧美一区二区少妇| 欧美一区二区三区影视| 久久五月婷婷丁香社区| 国产精品国产三级国产专播品爱网| 国产精品久久久久久福利一牛影视 | 国产乱人伦偷精品视频不卡| 麻豆免费精品视频| 9l国产精品久久久久麻豆| 色婷婷av一区二区三区软件| 99久久免费精品高清特色大片| 在线观看成人免费视频| 884aa四虎影成人精品一区| 精品国产欧美一区二区| 亚洲自拍偷拍图区| 国模娜娜一区二区三区| 欧美日韩aaa| 最新国产精品久久精品| 麻豆国产欧美一区二区三区| 99久久精品免费| 亚洲电影一区二区三区| 高清不卡在线观看| 欧美一区二视频| 亚洲一二三四在线| 99久久精品久久久久久清纯| 欧美va亚洲va香蕉在线 | 成人黄色在线网站| 911精品国产一区二区在线| 国产精品夫妻自拍| 国产麻豆视频一区二区| 国产精品欧美一区喷水| 肉肉av福利一精品导航| 欧美日韩国产另类一区| 国产欧美日韩三级| 国产精品一区二区免费不卡 | 欧美大胆人体bbbb| 亚洲美女在线国产| www.亚洲在线| |精品福利一区二区三区| 狠狠久久亚洲欧美| 欧美大片一区二区| 天堂成人免费av电影一区| 欧美日本视频在线| 亚洲天堂成人在线观看| 成人激情电影免费在线观看| 亚洲精品大片www| 欧美日韩亚州综合| 毛片av中文字幕一区二区| 欧美精品在线一区二区三区| 久久精品99国产精品日本| 日韩欧美国产电影| 精品综合免费视频观看| 国产精品久久久久国产精品日日| voyeur盗摄精品| 成人国产精品免费网站| 国产日韩精品一区二区三区| k8久久久一区二区三区| 石原莉奈一区二区三区在线观看 | jizz一区二区| 亚洲成人综合网站| 日韩免费视频线观看| 91免费版pro下载短视频| 麻豆精品一区二区综合av| 国产视频一区不卡| 色天使久久综合网天天| 日韩黄色片在线观看| 国产喂奶挤奶一区二区三区| 欧美视频在线不卡| 成人伦理片在线| 国产精品综合网| 亚洲成人先锋电影| 久久国产精品99久久久久久老狼| 一区二区三区中文字幕在线观看| 精品欧美乱码久久久久久1区2区| 国产精品白丝jk白祙喷水网站| 亚洲与欧洲av电影| 欧美—级在线免费片| 精品国产乱码久久久久久图片| 色综合天天狠狠| 91丨porny丨中文| 色综合天天天天做夜夜夜夜做| www.欧美色图| 欧美亚洲尤物久久| 欧美一区二区三区的| 欧美日韩一二区| 91麻豆精品国产| 中文字幕第一区| 国产免费久久精品| 欧美国产97人人爽人人喊| 久久精品男人天堂av| 精品国产伦一区二区三区观看方式 | 99国产精品99久久久久久| 91丨porny丨在线| 制服丝袜中文字幕亚洲| 日韩你懂的电影在线观看| 国产丝袜欧美中文另类| 国产精品盗摄一区二区三区| 日本午夜精品视频在线观看 | 极品瑜伽女神91| youjizz久久| 日韩欧美国产综合在线一区二区三区| 国产女主播视频一区二区| 亚洲精品免费一二三区| 久久综合综合久久综合| 在线精品视频免费播放| 精品动漫一区二区三区在线观看| 成人欧美一区二区三区小说| 久久精品国产亚洲5555| 一本一本大道香蕉久在线精品| 欧美一区二区免费视频| 亚洲欧美日韩小说| 狠狠色狠狠色综合日日91app| 色综合天天做天天爱| 国产性做久久久久久| 看片的网站亚洲| 欧美美女视频在线观看| 亚洲精品国产成人久久av盗摄| 国产精品一二三在| 久久综合九色综合97婷婷女人| 亚洲第一成人在线| 一本大道av伊人久久综合| 国产欧美日本一区二区三区| 日本中文一区二区三区| 4438亚洲最大| 91麻豆福利精品推荐| 亚洲色大成网站www久久九九| 成人性色生活片免费看爆迷你毛片| 欧美成人女星排名| 九九九久久久精品| 国产欧美精品日韩区二区麻豆天美| 国产在线播放一区| 国产精品成人在线观看| 色婷婷国产精品综合在线观看|