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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hooks.c

?? 這是vc開發的數據挖掘算法中的決策樹算法之see5算法源代碼.
?? C
?? 第 1 頁 / 共 5 頁
字號:
#endif		{		    /*  Record the value as a string  */		    SVal(DVec,Att) = StoreIVal(Name);		}	    }	    else	    if ( ! strcmp(Name, "?") )	    {		/*  Set marker to indicate missing value  */		DVal(DVec, Att) = UNKNOWN;		if ( SomeMiss ) SomeMiss[Att] = true;	    }	    else	    if ( Att != ClassAtt && ! strcmp(Name, "N/A") )	    {		/*  Set marker to indicate not applicable  */		DVal(DVec, Att) = NA;		if ( SomeNA ) SomeNA[Att] = true;	    }	    else	    if ( Discrete(Att) )	    {		/*  Discrete attribute  */		Dv = Which(Name, AttValName[Att], 1, MaxAttVal[Att]);		if ( ! Dv )		{		    if ( StatBit(Att, DISCRETE) )		    {			if ( Train )			{			    /*  Add value to list  */			    if ( MaxAttVal[Att] >= (long) AttValName[Att][0] )			    {				XError(TOOMANYVALS, AttName[Att],					 (char *) AttValName[Att][0] - 1);				Dv = MaxAttVal[Att];			    }			    else			    {				Dv = ++MaxAttVal[Att];				AttValName[Att][Dv]   = strdup(Name);				AttValName[Att][Dv+1] = "<other>"; /* no free */			    }			}			else			{			    /*  Set value to "<other>"  */			    Dv = MaxAttVal[Att] + 1;			}		    }		    else		    {			XError(BADATTVAL, AttName[Att], Name);			Dv = UNKNOWN;		    }		}		DVal(DVec, Att) = Dv;	    }	    else	    {		/*  Continuous value  */		if ( TStampVal(Att) )		{		    CVal(DVec, Att) = Cv = TStampToMins(Name);		    if ( Cv >= 1E9 )	/* long time in future */		    {			XError(BADTSTMP, AttName[Att], Name);			DVal(DVec, Att) = UNKNOWN;		    }		}		else		if ( DateVal(Att) )		{		    CVal(DVec, Att) = Cv = DateToDay(Name);		    if ( Cv < 1 )		    {			XError(BADDATE, AttName[Att], Name);			DVal(DVec, Att) = UNKNOWN;		    }		}		else		if ( TimeVal(Att) )		{		    CVal(DVec, Att) = Cv = TimeToSecs(Name);		    if ( Cv < 0 )		    {			XError(BADTIME, AttName[Att], Name);			DVal(DVec, Att) = UNKNOWN;		    }		}		else		{		    CVal(DVec, Att) = strtod(Name, &EndName);		    if ( EndName == Name || *EndName != '\0' )		    {			XError(BADATTVAL, AttName[Att], Name);			DVal(DVec, Att) = UNKNOWN;		    }		}		CheckValue(DVec, Att);	    }	}	if ( ClassAtt )	{	    if ( Discrete(ClassAtt) )	    {		Class(DVec) = XDVal(DVec, ClassAtt);	    }	    else	    if ( Unknown(DVec, ClassAtt) || NotApplic(DVec, ClassAtt) )	    {		Class(DVec) = 0;	    }	    else	    {		/*  Find appropriate segment using class thresholds  */		Cv = CVal(DVec, ClassAtt);		for ( Dv = 1 ; Dv < MaxClass && Cv > ClassThresh[Dv] ; Dv++ )		    ;		Class(DVec) = Dv;	    }	}	else	{	    if ( ! ReadName(Df, Name, 1000, '\00') )	    {		XError(HITEOF, Fn, "");		FreeLastCase(DVec);		return Nil;	    }	    Class(DVec) = Dv = Which(Name, ClassName, 1, MaxClass);	}	return DVec;    }    else    {	return Nil;    }}/*************************************************************************//*									 *//*	Store a label or ignored value in IValStore			 *//*									 *//*************************************************************************/int StoreIVal(String S)/*  ---------  */{    int		StartIx, Length;    if ( (Length=strlen(S) + 1) + IValsOffset > IValsSize )    {	if ( IgnoredVals )	{	    Realloc(IgnoredVals, IValsSize += 32768, char);	}	else	{	    IValsSize   = 32768;	    IValsOffset = 0;	    IgnoredVals = Alloc(IValsSize, char);	}    }    StartIx = IValsOffset;    strcpy(IgnoredVals + StartIx, S);    IValsOffset += Length;    return StartIx;}/*************************************************************************//*									 *//*	Check for bad continuous value					 *//*									 *//*************************************************************************/void CheckValue(Description DVec, Attribute Att)/*   ----------  */{    ContValue	Cv;    Cv = CVal(DVec, Att);    if ( ! finite(Cv) )    {	Error(BADNUMBER, AttName[Att], "");	CVal(DVec, Att) = UNKNOWN;    }}/*************************************************************************//*									 *//*	Routines to handle implicitly-defined attributes		 *//*									 *//*************************************************************************/char	*Buff;			/* buffer for input characters */int	BuffSize, BN;		/* size and index of next character */EltRec	*TStack;		/* expression stack model */int	TStackSize, TSN;	/* size of stack and index of next entry */int	DefSize, DN;		/* size of definition and next element */Boolean PreviousError;		/* to avoid parasytic errors */AttValue _UNK,			/* quasi-constant for unknown value */	 _NA;			/* ditto for not applicable */#define FailSyn(Msg)	 {DefSyntaxError(Msg); return false;}#define FailSem(Msg)	 {DefSemanticsError(Fi, Msg, OpCode); return false;}typedef  union  _xstack_elt         {            DiscrValue  _discr_val;            ContValue   _cont_val;            String      _string_val;         }	 XStackElt;#define	cval		_cont_val#define	sval		_string_val#define	dval		_discr_val/*************************************************************************//*									 *//*	A definition is handled in two stages:				 *//*	  - The definition is read (up to a line ending with a period)	 *//*	    replacing multiple whitespace characters with one space	 *//*	  - The definition is then read (using a recursive descent	 *//*	    parser), building up a reverse polish expression		 *//*	Syntax and semantics errors are flagged				 *//*									 *//*************************************************************************/void ImplicitAtt(FILE *Nf)/*   -----------  */{#ifdef CUBIST    _UNK.cval = UNKNOWN;#else    _UNK.dval = UNKNOWN;#endif    _NA.dval  = NA;    /*  Get definition as a string in Buff  */    ReadDefinition(Nf);    PreviousError = false;    BN = 0;    /*  Allocate initial stack and attribute definition  */    TStack = Alloc(TStackSize=50, EltRec);    TSN = 0;    AttDef[MaxAtt] = Alloc(DefSize = 100, DefElt);    DN = 0;    /*  Parse Buff as an expression terminated by a period  */    Expression();    if ( ! Find(".") ) DefSyntaxError("'.' ending definition");    /*  Final check -- defined attribute must not be of type String  */    if ( ! PreviousError )    {	if ( DN == 1 && DefOp(AttDef[MaxAtt][0]) == OP_ATT &&	     strcmp(AttName[MaxAtt], "case weight") )	{	    Error(SAMEATT, AttName[ (long) DefSVal(AttDef[MaxAtt][0]) ], Nil);	}	if ( TStack[0].Type == 'B' )	{	    /*  Defined attributes should never have a value N/A  */	    MaxAttVal[MaxAtt] = 3;	    AttValName[MaxAtt] = AllocZero(4, String);	    AttValName[MaxAtt][1] = strdup("??");	    AttValName[MaxAtt][2] = strdup("t");	    AttValName[MaxAtt][3] = strdup("f");	}	else	{	    MaxAttVal[MaxAtt] = 0;	}    }    if ( PreviousError )    {	DN = 0;	SpecialStatus[MaxAtt] = EXCLUDE;    }    /*  Write a terminating marker  */    DefOp(AttDef[MaxAtt][DN]) = OP_END;    Free(Buff);    Free(TStack);}/*************************************************************************//*									 *//*	Read the text of a definition.  Skip comments, collapse		 *//*	multiple whitespace characters.					 *//*									 *//*************************************************************************/void ReadDefinition(FILE *f)/*   --------------  */{    Boolean	LastWasPeriod=false;    char	c;    Buff = Alloc(BuffSize=50, char);    BN = 0;    while ( true )    {	c = InChar(f);	if ( c == '|' ) SkipComment;	if ( c == EOF || c == '\n' && LastWasPeriod )	{	    /*  The definition is complete.  Add a period if it's		not there already and terminate the string  */	    if ( ! LastWasPeriod ) Append('.');	    Append(0);	    return;	}	if ( Space(c) )	{	    Append(' ');	}	else	if ( c == '\\' )	{	    /*  Escaped character -- bypass any special meaning  */	    Append(InChar(f));	}	else	{	    LastWasPeriod = ( c == '.' );	    Append(c);	}    }}/*************************************************************************//*									 *//*	Append a character to Buff, resizing it if necessary		 *//*									 *//*************************************************************************/void Append(char c)/*   ------  */{    if ( c == ' ' && (! BN || Buff[BN-1] == ' ' ) ) return;    if ( BN >= BuffSize )    {	Realloc(Buff, BuffSize += 50, char);    }    Buff[BN++] = c;}/*************************************************************************//*									 *//*	Recursive descent parser with syntax error checking.		 *//*	The reverse polish is built up by calls to Dump() and DumpOp(),	 *//*	which also check for semantic validity.				 *//*									 *//*	For possible error messages, each routine also keeps track of	 *//*	the beginning of the construct that it recognises (in Fi).	 *//*									 *//*************************************************************************/Boolean Expression()/*      ----------  */{    int		Fi=BN;    if ( Buff[BN] == ' ' ) BN++;    if ( ! Conjunct() ) FailSyn("expression");    while ( Find("or") )    {	BN += 2;	if ( ! Conjunct() ) FailSyn("expression");	DumpOp(OP_OR, Fi);    }    return true;}Boolean Conjunct()/*      --------  */{    int		Fi=BN;    if ( ! SExpression() ) FailSyn("expression");    while ( Find("and") )    {	BN += 3;	if ( ! SExpression() ) FailSyn("expression");	DumpOp(OP_AND, Fi);    }    return true;}String RelOps[] = {">=", "<=", "!=", "<>", ">", "<", "=", (String) 0};Boolean SExpression()/*      -----------  */{    int		o, Fi=BN;    if ( ! AExpression() ) FailSyn("expression");    if ( (o = FindOne(RelOps)) >= 0 )    {	BN += strlen(RelOps[o]);	if ( ! AExpression() ) FailSyn("expression");	DumpOp(( o == 0 ? OP_GE :		 o == 1 ? OP_LE :		 o == 4 ? OP_GT :		 o == 5 ? OP_LT :		 o == 2 || o == 3 ?			( TStack[TSN-1].Type == 'S' ? OP_SNE : OP_NE ) :			( TStack[TSN-1].Type == 'S' ? OP_SEQ : OP_EQ ) ), Fi);    }    return true;}String AddOps[] = {"+", "-", (String) 0};Boolean AExpression()/*      -----------  */{    int		o, Fi=BN;    if ( Buff[BN] == ' ' ) BN++;    if ( (o = FindOne(AddOps)) >= 0 )    {	BN += 1;    }    if ( ! Term() ) FailSyn("expression");    if ( o == 1 ) DumpOp(OP_UMINUS, Fi);    while ( (o = FindOne(AddOps)) >= 0 )    {	BN += 1;	if ( ! Term() ) FailSyn("arithmetic expression");	DumpOp((char)(OP_PLUS + o), Fi);    }    return true;}String MultOps[] = {"*", "/", "%", (String) 0};Boolean Term()/*      ----  */{    int		o, Fi=BN;    if ( ! Factor() ) FailSyn("expression");    while ( (o = FindOne(MultOps)) >= 0 )    {	BN += 1;	if ( ! Factor() ) FailSyn("arithmetic expression");	DumpOp((char)(OP_MULT + o), Fi);    }    return true;}Boolean Factor()/*      ----  */{    int		Fi=BN;    if ( ! Primary() ) FailSyn("value");    while ( Find("^") )    {	BN += 1;	if ( ! Primary() ) FailSyn("exponent");	DumpOp(OP_POW, Fi);    }    return true;}Boolean Primary()/*      -------  */{    if ( Atom() )    {	return true;    }    else    if ( Find("(") )    {	BN++;	if ( ! Expression() ) FailSyn("expression in parentheses");	if ( ! Find(")") ) FailSyn("')'");	BN++;	return true;    }    else    {	FailSyn("attribute, value, or '('");    }}String Funcs[] = {"sin", "cos", "tan", "log", "exp", "int", (String) 0};Boolean Atom()/*      ----  */{    char	*EndPtr, *Str, Date[11], Time[9];    int		o, FirstBN, Fi=BN;    ContValue	F;    Attribute	Att;    if ( Buff[BN] == ' ' ) BN++;    if ( Buff[BN] == '"' )    {	FirstBN = ++BN;	while ( Buff[BN] != '"' )	{	    if ( ! Buff[BN] ) FailSyn("closing '\"'");	    BN++;	}	/*  Make a copy of the string without double quotes  */	Buff[BN] = '\00';	Str = strdup(Buff + FirstBN);	Buff[BN++] = '"';	Dump(OP_STR, 0, Str, Fi);    }    else    if ( (Att = FindAttName()) )    {	BN += strlen(AttName[Att]);	Dump(OP_ATT, 0, (String) (long) Att, Fi);    }    else    if ( isdigit(Buff[BN]) )    {	/*  Check for date or time first  */	if ( ( Buff[BN+4] == '/' && Buff[BN+7] == '/' ||	       Buff[BN+4] == '-' && Buff[BN+7] == '-' )&&	     isdigit(Buff[BN+1]) && isdigit(Buff[BN+2]) &&		isdigit(Buff[BN+3]) &&	     isdigit(Buff[BN+5]) && isdigit(Buff[BN+6]) &&	     isdigit(Buff[BN+8]) && isdigit(Buff[BN+9]) )	{	    memcpy(Date, Buff+BN, 10);	    Date[10] = '\00';	    if ( (F = DateToDay(Date)) == 0 )	    {		Error(BADDEF1, Date, "date");	    }	    BN += 10;	}	else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情自拍视频| 欧美精品一区二区三区视频| 国产主播一区二区三区| 丝袜a∨在线一区二区三区不卡| 1区2区3区精品视频| 国产精品卡一卡二| 国产精品网站一区| 亚洲欧美偷拍卡通变态| 综合色天天鬼久久鬼色| 亚洲图片另类小说| 亚洲国产综合视频在线观看| 亚洲一区视频在线| 日本三级韩国三级欧美三级| 肉色丝袜一区二区| 国产精品正在播放| 成人精品gif动图一区| 99在线热播精品免费| 99久久综合99久久综合网站| 91官网在线免费观看| 欧美日韩三级视频| 精品91自产拍在线观看一区| 国产欧美一区二区精品性色 | 久久夜色精品国产欧美乱极品| 日韩欧美在线综合网| 久久噜噜亚洲综合| 亚洲欧美日本韩国| 日韩av在线播放中文字幕| 久久精品国产一区二区| 国产寡妇亲子伦一区二区| 91麻豆国产自产在线观看| 欧美日韩中文国产| 久久久久久久电影| 一区二区三区日韩欧美精品| 麻豆国产欧美一区二区三区| 懂色中文一区二区在线播放| 欧美视频完全免费看| 精品国产污网站| 亚洲婷婷国产精品电影人久久| 日本美女一区二区三区视频| 成人精品视频网站| 日韩精品一区二区三区三区免费| 欧美激情资源网| 奇米影视7777精品一区二区| 成人精品免费看| 欧美mv日韩mv亚洲| 亚洲宅男天堂在线观看无病毒| 国产乱子伦视频一区二区三区| 91成人在线观看喷潮| 久久久99久久精品欧美| 婷婷开心激情综合| 91麻豆免费视频| 久久亚洲精品小早川怜子| 亚洲成人资源在线| 91蜜桃网址入口| 久久九九国产精品| 日韩高清一级片| 日本高清无吗v一区| 日本一区二区电影| 国产精品一区一区三区| 欧美高清激情brazzers| 亚洲视频在线一区观看| 国产福利91精品| 精品久久久久久无| 蜜臀av性久久久久蜜臀aⅴ四虎| 色欧美片视频在线观看在线视频| 亚洲国产高清不卡| 韩国v欧美v日本v亚洲v| 欧美不卡一区二区| 美女久久久精品| 欧美一级国产精品| 免费成人性网站| 日韩一区二区视频在线观看| 天天综合色天天综合| 欧美日本国产视频| 丝袜脚交一区二区| 日韩欧美成人午夜| 久久精品国内一区二区三区| 日韩欧美激情四射| 激情图片小说一区| 久久先锋影音av鲁色资源网| 韩国精品主播一区二区在线观看 | 精品国产精品一区二区夜夜嗨| 毛片不卡一区二区| 精品国产凹凸成av人网站| 精品一区二区三区不卡| 久久久久久电影| 不卡视频在线看| 夜夜揉揉日日人人青青一国产精品 | 精久久久久久久久久久| 久久久青草青青国产亚洲免观| 国产伦精品一区二区三区免费 | 国产一区在线看| 国产欧美日产一区| 色欲综合视频天天天| 亚洲成人资源网| 精品成人免费观看| 99久久精品国产观看| 亚洲与欧洲av电影| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 欧美国产欧美综合| 91丨九色丨黑人外教| 午夜私人影院久久久久| 精品日韩成人av| av成人动漫在线观看| 亚洲成人在线观看视频| 欧美精品一区二区三区高清aⅴ | 亚洲精品国产品国语在线app| 欧美日高清视频| 国产精品夜夜爽| 亚洲国产精品欧美一二99| 欧美电视剧免费全集观看| www..com久久爱| 奇米精品一区二区三区四区| 欧美韩国日本综合| 91精品中文字幕一区二区三区| 国产98色在线|日韩| 亚洲成av人片www| 国产欧美日韩在线| 欧美精品国产精品| 91在线一区二区| 精品系列免费在线观看| 亚洲精品福利视频网站| 久久久久高清精品| 欧美丰满一区二区免费视频| 成人黄色综合网站| 久久成人18免费观看| 亚洲国产精品视频| 综合欧美一区二区三区| 久久色中文字幕| 欧美日韩国产首页| 色嗨嗨av一区二区三区| 国产一区二区0| 久久 天天综合| 日韩中文字幕区一区有砖一区| 亚洲天堂免费在线观看视频| 久久久久久久久久久久久久久99| 91麻豆精品国产自产在线| 91久久免费观看| 91视频免费播放| 99久久久免费精品国产一区二区| 国产乱子伦视频一区二区三区| 美国毛片一区二区三区| 日本伊人午夜精品| 午夜成人免费电影| 亚洲无人区一区| 亚洲成人av在线电影| 亚洲一区二区在线免费看| 亚洲视频一区在线| 亚洲精品va在线观看| 亚洲女同ⅹxx女同tv| 亚洲视频网在线直播| 日韩美女视频19| 一区二区三区四区精品在线视频| 中文成人av在线| 亚洲人成网站精品片在线观看 | 精品国产乱码久久久久久牛牛| 日韩欧美在线不卡| 欧美va亚洲va香蕉在线| 久久综合中文字幕| 国产丝袜欧美中文另类| 中文字幕第一页久久| 中文字幕在线不卡| 亚洲美女屁股眼交| 亚洲一二三四区不卡| 天天色综合成人网| 裸体一区二区三区| 国内精品免费在线观看| 国产成人免费视频网站高清观看视频 | 99re在线精品| 91久久精品一区二区| 欧美人与性动xxxx| 日韩欧美中文一区| 国产精品久久久久久久久晋中| 亚洲视频你懂的| 青娱乐精品视频在线| 国产精品自拍一区| 91免费在线视频观看| 欧美群妇大交群中文字幕| 精品剧情v国产在线观看在线| 国产精品午夜久久| 午夜免费欧美电影| 国产精品一二三四| 在线免费视频一区二区| 日韩欧美一级精品久久| 国产精品美女久久久久久久久久久| 国产精品国产三级国产普通话99| 亚洲一区中文日韩| 国产一区二三区好的| 欧洲国内综合视频| 久久久久久久综合| 亚洲国产另类av| 国产aⅴ综合色| 91麻豆精品国产无毒不卡在线观看| 国产欧美一区二区三区网站| 偷拍亚洲欧洲综合| 99亚偷拍自图区亚洲| 精品少妇一区二区三区视频免付费| 亚洲天堂a在线| 国产一区999| 91精品国产91热久久久做人人|