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

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

?? hooks.c

?? 這是vc開發(fā)的數(shù)據(jù)挖掘算法中的決策樹算法之see5算法源代碼.
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*************************************************************************//*									 *//*	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 )

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天综合在线视频| 国产精品色呦呦| 2019国产精品| 亚洲同性gay激情无套| 亚洲国产视频a| 国产精品一二三四| 色偷偷久久人人79超碰人人澡 | 在线视频一区二区免费| 欧美一区二区三区啪啪| 中文字幕精品一区二区三区精品| 五月天激情综合| 欧美精品国产精品| 中文一区二区完整视频在线观看| 怡红院av一区二区三区| 韩国精品久久久| 色诱亚洲精品久久久久久| 久久久综合激的五月天| 午夜久久久久久久久| 成人精品亚洲人成在线| 日韩午夜电影在线观看| 一区二区欧美在线观看| 国产999精品久久久久久| 在线不卡免费av| 一区二区三区91| 99国产精品视频免费观看| 久久精品水蜜桃av综合天堂| 亚洲综合一区二区精品导航| 国产麻豆精品视频| 精品免费日韩av| 亚洲va国产va欧美va观看| 色呦呦日韩精品| 亚洲天堂精品视频| 成人理论电影网| 中文字幕永久在线不卡| 国产成人精品影院| 欧美激情在线一区二区| 国产剧情在线观看一区二区| 26uuu色噜噜精品一区二区| 麻豆国产精品一区二区三区| 日韩欧美美女一区二区三区| 日韩在线一区二区| 欧美一区二区私人影院日本| 午夜国产不卡在线观看视频| 欧美一二三区精品| 国产自产2019最新不卡| 2024国产精品视频| 岛国一区二区在线观看| 一区二区三区四区蜜桃| 欧美日韩大陆在线| 韩国精品久久久| 亚洲免费av观看| 欧美日本在线看| 亚洲综合在线第一页| 国产日产欧产精品推荐色| 91精品蜜臀在线一区尤物| 欧美伊人久久久久久久久影院| 国产成人av电影在线| 美国av一区二区| 色综合久久久久综合体| 肉色丝袜一区二区| 亚洲人午夜精品天堂一二香蕉| 精品国产亚洲在线| 欧美一级二级三级乱码| 91国偷自产一区二区三区成为亚洲经典 | 国产三级一区二区三区| 欧美一区二区三区在线| 91麻豆精品国产91久久久久久 | 色系网站成人免费| www.日韩大片| 99精品国产91久久久久久 | 国产精品色在线| 欧美一区中文字幕| 色呦呦国产精品| 国产在线国偷精品产拍免费yy| 亚洲成av人片在www色猫咪| 一区视频在线播放| 国产色一区二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美视频完全免费看| 99久久精品国产一区二区三区| 国产精品99久久久久久久女警| 午夜精品久久久久久久99樱桃| 亚洲精选一二三| 成人欧美一区二区三区白人| 中文在线一区二区| 综合久久综合久久| 一二三四区精品视频| 一区二区激情小说| 日韩精品国产欧美| 亚洲欧美一区二区三区极速播放 | 亚洲丝袜美腿综合| 亚洲欧美视频在线观看视频| 成人精品国产免费网站| 成人综合婷婷国产精品久久蜜臀| 国产一区二区久久| 不卡的电视剧免费网站有什么| 成人美女视频在线观看18| 成人中文字幕在线| 91极品视觉盛宴| 欧美一区二区人人喊爽| 久久久国产精品午夜一区ai换脸 | 免费视频一区二区| 国产成人免费在线观看不卡| 91在线免费看| 欧美日韩国产美| 国产欧美va欧美不卡在线| 久久婷婷一区二区三区| 中文字幕制服丝袜一区二区三区 | 青草av.久久免费一区| 韩国女主播一区| 欧美在线免费观看亚洲| 欧美videos大乳护士334| 亚洲欧美一区二区久久| 精品影视av免费| 欧美特级限制片免费在线观看| 26uuu欧美| 老司机免费视频一区二区三区| 成人av网址在线观看| 欧美一区二区三区免费大片 | 日韩精品一区二区三区视频在线观看| 中文字幕一区二区三区四区 | 日韩欧美国产综合一区 | 一区二区三区日韩精品视频| 国产精品一区专区| 精品区一区二区| 日韩国产欧美在线视频| 色激情天天射综合网| 国产无人区一区二区三区| 九九视频精品免费| 日韩一级片网址| 麻豆精品一区二区综合av| 欧美一区二区三区免费| 日日骚欧美日韩| 欧美一区二区精美| 蜜桃精品视频在线| 精品久久五月天| 久久99精品久久久久婷婷| 欧美一级欧美三级在线观看| 日韩中文字幕av电影| 欧美一卡在线观看| 天堂一区二区在线| 国产露脸91国语对白| 国产亚洲女人久久久久毛片| 国产一区二区三区日韩| 国产亚洲婷婷免费| 不卡av电影在线播放| 亚洲摸摸操操av| 欧美精品18+| 狠狠色综合色综合网络| 国产精品久久久久久久久免费相片 | 久久久久久一二三区| fc2成人免费人成在线观看播放| 夜夜精品浪潮av一区二区三区| 88在线观看91蜜桃国自产| 免费成人在线网站| 国产色产综合色产在线视频| 91视频精品在这里| 午夜免费久久看| 久久精品亚洲乱码伦伦中文| 不卡av免费在线观看| 亚洲高清不卡在线观看| 日韩色视频在线观看| 99久久99久久综合| 久久精品av麻豆的观看方式| 亚洲精品欧美在线| 国产精品美女久久久久久久网站| 成人精品高清在线| av福利精品导航| 成人app软件下载大全免费| 麻豆久久一区二区| 久久精品国产亚洲高清剧情介绍 | 欧美va亚洲va香蕉在线| 欧美日产国产精品| 在线观看欧美精品| 国产91在线|亚洲| 日本欧美久久久久免费播放网| 国产喂奶挤奶一区二区三区| 欧美一卡2卡三卡4卡5免费| 色综合久久综合| 国产精品一级片在线观看| 免费久久99精品国产| 午夜成人在线视频| 日韩欧美国产wwwww| 欧美日韩免费观看一区二区三区| 成人精品国产免费网站| 丰满亚洲少妇av| 国产成人av自拍| 成人免费福利片| 91首页免费视频| 欧美羞羞免费网站| 在线观看亚洲精品| 欧美性色欧美a在线播放| 欧美性猛交一区二区三区精品| 欧美伦理视频网站| 91精品中文字幕一区二区三区| 日韩精品中文字幕一区| 久久夜色精品国产欧美乱极品| 国产欧美一区在线| 中文字幕视频一区二区三区久| 亚洲男人的天堂在线aⅴ视频|