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

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

?? defns.h

?? 數據挖掘中的決策樹生成的經典的see5軟件的源代碼。
?? H
字號:
/*************************************************************************//*									 *//*	Source code for use with See5/C5.0 Release 2.02			 *//*	-----------------------------------------------			 *//*		      Copyright RuleQuest Research 2005			 *//*									 *//*	This code is provided "as is" without warranty of any kind,	 *//*	either express or implied.  All use is at your own risk.	 *//*									 *//*************************************************************************/#include <stdio.h>#include <math.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <time.h>#ifdef WIN32#include <windows.h>#endif/*************************************************************************//*									 *//*		Constants, macros etc.					 *//*									 *//*************************************************************************/#define	 SEE5#define	 Nil	   0		/* null pointer */#define	 false	   0#define	 true	   1#define	 None	   -1 #define	 Epsilon   1E-4#define  EXCLUDE   1		/* special attribute status: do not use */#define  SKIP	   2		/* do not use in classifiers */#define  DISCRETE  4		/* ditto: collect values as data read */#define  ORDERED   8		/* ditto: ordered discrete values */#define  DATEVAL   16		/* ditto: YYYY/MM/DD or YYYY-MM-DD */#define  STIMEVAL  32		/* ditto: HH:MM:SS */#define	 TSTMPVAL  64		/* date time */				/* unknown and N/A values are represented by				   unlikely floating-point numbers				   (octal 01600000000 and 01) */#define	 UNKNOWN   01600000000	/* 1.5777218104420236e-30 */#define	 NA	   01		/* 1.4012984643248171e-45 */#define	 BrDiscr   1#define	 BrThresh  2#define	 BrSubset  3#define  Alloc(N,T)		(T *) Pmalloc((N)*sizeof(T))#define  AllocZero(N,T)		(T *) Pcalloc(N, sizeof(T))#define  Realloc(V,N,T)		V = (T *) Prealloc(V, (N)*sizeof(T))#define	 Bit(b)			(1 << (b))#define	 In(b,s)		((s[(b) >> 3]) & Bit((b) & 07))#define	 SetBit(b,s)		(s[(b) >> 3] |= Bit((b) & 07))#define	 ForEach(v,f,l)		for(v=f ; v<=l ; ++v) #define	 StatBit(a,b)		(SpecialStatus[a]&(b))#define	 Exclude(a)		StatBit(a,EXCLUDE)#define	 Skip(a)		StatBit(a,EXCLUDE|SKIP)#define  Discrete(a)		(MaxAttVal[a] || StatBit(a,DISCRETE))#define  Continuous(a)		(! MaxAttVal[a] && ! StatBit(a,DISCRETE))#define	 Ordered(a)		StatBit(a,ORDERED)#define	 DateVal(a)		StatBit(a,DATEVAL)#define	 TimeVal(a)		StatBit(a,STIMEVAL)#define	 TStampVal(a)		StatBit(a,TSTMPVAL)#define  Space(s)		(s==' ' || s=='\n' || s=='\r' || s=='\t')#define  SkipComment		while ( ( c = InChar(f) ) != '\n' && c != EOF )#define	 FreeUnlessNil(p)	if((p)!=Nil) free(p)#define	 Free(x)	 	free(x)#define	 assert(x)#ifdef WIN32#define  rint(x)		((x)<0 ? (double)((int)((x)-0.5)) :\					 (double)((int)((x)+0.5)))#define	 finite(x)		_finite(x)#define	 strdup(x)		_strdup(x)#endif#define	 P1(x)			(rint((x)*10) / 10)#define	 Of			stdout#define	 Goodbye(x)		exit(x)#define	 CharWidth(s)		((int) strlen(s))#define	 NOFILE		 0#define	 BADCLASSTHRESH	 1#define	 LEQCLASSTHRESH	 2#define	 BADATTNAME	 3#define	 EOFINATT	 4#define	 SINGLEATTVAL	 5#define	 BADATTVAL	 6#define	 BADNUMBER	 7#define	 BADCLASS	 8#define	 BADCOSTCLASS	 9#define	 BADCOST	10#define	 NOMEM		11#define	 TOOMANYVALS	12#define	 BADDISCRETE	13#define	 NOTARGET	14#define	 BADCTARGET	15#define	 BADDTARGET	16#define	 LONGNAME	17#define	 HITEOF		18#define	 MISSNAME	19#define	 BADDATE	20#define	 BADTIME	21#define	 BADTSTMP	22#define	 DUPATTNAME	23#define	 UNKNOWNATT	24#define	 BADDEF1	25#define	 BADDEF2	26#define	 BADDEF3	27#define	 BADDEF4	28#define	 SAMEATT	29#define	 MODELFILE	30/*************************************************************************//*									 *//*		Type definitions					 *//*									 *//*************************************************************************/typedef  unsigned char	Boolean, BranchType, *Set, Byte;typedef	 char		*String;typedef  int	ItemNo;			/* data item number */typedef  float	ItemCount;		/* count of (partial) items */typedef  int	ClassNo,		/* class number, 1..MaxClass */		DiscrValue,		/* discrete attribute value (0 = ?) */		Attribute;		/* attribute number, 1..MaxAtt */typedef	 float	ContValue;		/* continuous attribute value */#define	 PREC	 7			/* precision */typedef  union	 _def_val	 {	    String	_s_val;		/* att val for comparison */	    ContValue	_n_val;		/* number for arith */	 }	 DefVal;typedef  struct  _def_elt	 {	    short	_op_code;	/* type of element */	    DefVal	_operand;	/* string or numeric value */	 }	 DefElt, *Definition;typedef  struct  _elt_rec	 {	    int		Fi,		/* index of first char of element */			Li;		/* last ditto */	    char	Type;		/* 'B', 'S', or 'N' */	 }	 EltRec;#define	 DefOp(DE)	DE._op_code#define	 DefSVal(DE)	DE._operand._s_val#define	 DefNVal(DE)	DE._operand._n_val#define	 OP_ATT			 0	/* opcodes */#define	 OP_NUM			 1#define	 OP_STR			 2#define	 OP_MISS		 3#define	 OP_AND			10#define	 OP_OR			11#define	 OP_EQ			20#define	 OP_NE			21#define	 OP_GT			22#define	 OP_GE			23#define	 OP_LT			24#define	 OP_LE			25#define	 OP_SEQ			26#define	 OP_SNE			27#define	 OP_PLUS		30#define	 OP_MINUS		31#define	 OP_UMINUS		32#define	 OP_MULT		33#define	 OP_DIV			34#define	 OP_MOD			35#define	 OP_POW			36#define	 OP_SIN			40#define	 OP_COS			41#define	 OP_TAN			42#define	 OP_LOG			43#define	 OP_EXP			44#define	 OP_INT			45#define	 OP_END			99typedef  union  _attribute_value	 {	    DiscrValue	_discr_val;	    ContValue	_cont_val;	 }	 AttValue, *Description;#define  CVal(Case,Attribute)   Case[Attribute]._cont_val#define  DVal(Case,Attribute)   Case[Attribute]._discr_val#define  XDVal(Case,Att)	(Case[Att]._discr_val & 077777777)#define  SVal(Case,Attribute)   Case[Attribute]._discr_val#define  Class(Case)		(*Case)._discr_val#define  Weight(Case)		(*(Case-1))._cont_val#define	 Unknown(Case,Att)	(DVal(Case,Att)==UNKNOWN)#define	 UnknownVal(AV)		(AV._discr_val==UNKNOWN)#define	 NotApplic(Case,Att)	(DVal(Case,Att)==NA)#define	 NotApplicVal(AV)	(AV._discr_val==NA)typedef  struct _treerec	*Tree;typedef  struct _treerec	 {	    BranchType	NodeType;	    ClassNo	Leaf;		/* best class at this node */	    ItemCount	Items,		/* no of items at this node */			*ClassDist,	/* class distribution of items */	    		Errors;		/* no of errors at this node */	    Attribute	Tested; 	/* attribute referenced in test */	    int		Forks;		/* number of branches at this node */	    ContValue	Cut,		/* threshold for continuous attribute */		  	Lower,		/* lower limit of soft threshold */		  	Upper,		/* upper limit ditto */			Mid;		/* 50% point */	    Set         *Subset;	/* subsets of discrete values  */	    Tree	*Branch;	/* Branch[x] = subtree for outcome x */	 }	 TreeRec;typedef  int	RuleNo;			/* rule number */typedef  struct _condrec	 {	    BranchType	NodeType;	/* test type (see tree nodes) */	    Attribute	Tested;		/* attribute tested */	    int		Forks;		/* possible branches */	    ContValue	Cut;		/* threshold (if relevant) */	    Set		Subset;		/* subset (if relevant) */	    int		TestValue,	/* specified outcome of test */			TestI;		/* rule tree index of this test */	 }	 CondRec, *Condition;typedef  struct _rulerec	 {	    RuleNo	RNo;		/* rule number */	    int		TNo,		/* trial number */	    		Size;		/* number of conditions */	    Condition	*Lhs;		/* conditions themselves */	    ClassNo	Rhs;		/* class given by rule */	    ItemCount	Cover,		/* number of cases covered by rule */			Correct;	/* number on which correct */	    float	Prior;		/* prior probability of RHS */	    int		Vote;		/* unit = 0.001 */	 }	 RuleRec, *CRule;typedef  struct _ruletreerec *RuleTree;typedef  struct _ruletreerec	 {	    RuleNo	*Fire;		/* rules matched at this node */	    Condition	CondTest;	/* new test */	    int		Forks;		/* number of branches */	    RuleTree	*Branch;	/* subtrees */	 }	 RuleTreeRec;typedef struct _rulesetrec	 {	    RuleNo	SNRules;	/* number of rules */	    CRule	*SRule;		/* rules */	    ClassNo	SDefault;	/* default class for this ruleset */	    RuleTree	RT;		/* rule tree for this ruleset */	 }	 RuleSetRec, *CRuleSet;/*************************************************************************//*									 *//*		Function prototypes					 *//*									 *//*************************************************************************/Boolean	    ReadName(FILE *f, String s, int n, char ColonOpt);void	    GetNames(FILE *Nf);void	    ExplicitAtt(FILE *Nf);int	    Which(String Val, String *List, int First, int Last);int	    InChar(FILE *f);Description GetDescription(FILE *Df, Boolean Train);int	    StoreIVal(String S);void	    CheckValue(Description DVec, Attribute Att);void	    ImplicitAtt(FILE *Nf);void	    ReadDefinition(FILE *f);void	    Append(char c);Boolean	    Expression();Boolean	    Conjunct();Boolean	    SExpression();Boolean	    AExpression();Boolean	    Term();Boolean	    Factor();Boolean	    Primary();Boolean	    Atom();Boolean	    Find(String S);int	    FindOne(String *Alt);Attribute   FindAttName();void	    DefSyntaxError(String Msg);void	    DefSemanticsError(int Fi, String Msg, int OpCode);void	    Dump(char OpCode, ContValue F, String S, int Fi);void	    DumpOp(char OpCode, int Fi);Boolean	    UpdateTStack(char OpCode, ContValue F, String S, int Fi);AttValue    EvaluateDef(Definition D, Description Case);void	    ReadFilePrefix(String Extension);void	    ReadHeader();Tree	    GetTree(String Extension);Tree	    InTree();CRuleSet    GetRules(String Extension);CRuleSet    InRules();CRule	    InRule();Condition   InCondition();void	    ConstructRuleTree(CRuleSet RS);void	    SetTestIndex(Condition C);RuleTree    GrowRT(RuleNo *RR, int RRN, CRule *Rule);int	    DesiredOutcome(CRule R, int TI);int	    SelectTest(RuleNo *RR, int RRN, CRule *Rule);int	    ReadProp(char *Delim);String	    RemoveQuotes(String S);Set	    MakeSubset(Attribute Att);void	    BinRecoverDiscreteNames();Tree	    BinInTree();CRuleSet    BinInRules();void	    StreamIn(String S, int n);Tree	    Leaf(double *Freq, ClassNo NodeClass, ItemCount Items,		 ItemCount Errors);void	    GetMCosts(FILE *f);ClassNo	    TreeClassify(Description CaseDesc, Tree DecisionTree);void	    FollowAllBranches(Description CaseDesc, Tree T, float Fraction);void	    FindLeaf(Description CaseDesc, Tree T, Tree PT, float Wt);ClassNo	    RuleClassify(Description CaseDesc, CRuleSet RS);int	    FindOutcome(Description Case, Condition OneCond);Boolean	    Satisfies(Description CaseDesc, Condition OneCond);Boolean	    Matches(CRule R, Description Case);void	    CheckActiveSpace(int N);void	    MarkActive(RuleTree RT, Description Case);ClassNo	    BoostClassify(Description CaseDesc, int MaxTrial);ClassNo	    SelectClass(ClassNo Default, Boolean UseCosts);ClassNo	    Classify(Description CaseDesc);float	    Interpolate(Tree T, ContValue Val);FILE *	    GetFile(String Extension, String RW);void	    CheckFile(String Extension, Boolean Write);char	    ProcessOption(int Argc, char *Argv[], char *Options);void	    *Pmalloc(unsigned Bytes);void	    *Prealloc(void *Present, unsigned Bytes);void	    *Pcalloc(unsigned Number, unsigned Size);void	    Error(int ErrNo, String S1, String S2);int	    Denominator(ContValue Val);int	    GetInt(String S, int N);int	    DateToDay(String DS);int	    TimeToSecs(String TS);void	    SetTSBase(int y);int	    TStampToMins(String TS);void	    FreeGlobals();void	    FreeCosts();void	    FreeNames();void	    FreeTree(Tree T);void	    FreeRule(CRule R);void	    FreeRuleTree(RuleTree RT);void	    FreeRules(CRuleSet RS);void	    FreeLastCase(Description DVec);void	    FreeVector(void **V, int First, int Last);/*************************************************************************//*									 *//*		Text strings						 *//*									 *//*************************************************************************/#define	 TX_Line(l,f)		"\n*** line %d of `%s': ", l, f#define	 E_NOFILE(f,e)		"cannot open file %s%s\n", f, e#define	 E_BADATTNAME		"`:' or `:=' expected after attribute name"\					" `%s'\n"#define	 E_EOFINATT		"unexpected eof while reading attribute `%s'\n"#define	 E_SINGLEATTVAL(a,v)	"attribute `%s' has only one value `%s'\n",\					a, v#define	 E_DUPATTNAME		"multiple attributes with name `%s'\n"#define	 E_BADATTVAL(v,a)	"bad value of `%s' for attribute `%s'\n", v, a#define	 E_BADNUMBER(a)		"value of `%s' changed to `?'\n", a#define	 E_BADCLASS		"bad class value `%s'l\n"#define	 E_BADCLASSTHRESH	"bad class threshold `%s'\n"#define	 E_LEQCLASSTHRESH	"class threshold `%s' <= previous threshold\n"#define	 E_BADCOSTCLASS		"bad class `%s'\n"#define	 E_BADCOST		"bad cost value `%s'\n"#define	 E_NOMEM		"unable to allocate sufficient memory\n"#define	 E_TOOMANYVALS(a,n)	"too many values for attribute `%s'"\					" (max %d)\n", a, n#define	 E_BADDISCRETE		"bad number of discrete values for attribute"\					" `%s'\n"#define	 E_NOTARGET		"target attribute `%s' not found\n"#define	 E_BADCTARGET		"target attribute `%s' must be"\					" type `continuous'\n"#define	 E_BADDTARGET		"target attribute `%s' must be specified by"\					" a list of discrete values\n"#define	 E_LONGNAME		"overlength name: check data file formats\n"#define	 E_HITEOF		"unexpected end of file\n"#define	 E_MISSNAME		"missing name or value before `%s'\n"#define	 E_BADTSTMP(d,a)	"bad timestamp `%s' for attribute `%s'\n", d, a#define	 E_BADDATE(d,a)		"bad date `%s' for attribute `%s'\n", d, a#define	 E_BADTIME(d,a)		"bad time `%s' for attribute `%s'\n", d, a#define	 E_UNKNOWNATT		"unknown attribute name `%s'\n"#define	 E_BADDEF1(a,s,x)	"in definition of attribute `%s':\n"\					"\tat `%.12s': expect %s\n", a, s, x#define	 E_BADDEF2(a,s,x)	"in definition of attribute `%s':\n"\					"\t`%s': %s\n", a, s, x#define	 E_BADDEF3		"cannot define target attribute `%s'\n"#define	 E_BADDEF4		"target attribute appears in definition"\					" of attribute `%s'\n"#define	 E_SAMEATT(a,b)		"attribute `%s' is identical to attribute"\					" `%s'\n", a, b#define	 EX_MODELFILE(f)	"file %s incompatible with .names file\n", f#define	 E_MFATT		"undefined or excluded attribute"#define	 E_MFATTVAL		"undefined attribute value"#define	 E_MFCLASS		"undefined class"#define	 E_MFEOF		"unexpected eof"#define	 T_ErrorLimit		"Error limit exceeded\n"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本一本大道香蕉久在线精品| 国产欧美精品一区aⅴ影院| 久久久久久久性| 天天色综合成人网| 成人国产亚洲欧美成人综合网| 欧美一级搡bbbb搡bbbb| 一区二区三区四区在线| 国产精品一级黄| 日韩欧美国产系列| 五月综合激情婷婷六月色窝| 成人av电影在线| 国产蜜臀av在线一区二区三区| 男人的天堂亚洲一区| 欧美性猛交一区二区三区精品| 久久久精品tv| 狠狠网亚洲精品| 91精品国产色综合久久不卡电影| 亚洲精品久久久久久国产精华液| 成人伦理片在线| 中文在线免费一区三区高中清不卡| 老司机精品视频一区二区三区| 在线播放欧美女士性生活| 亚洲在线观看免费视频| 欧洲色大大久久| 亚洲综合在线视频| 在线亚洲+欧美+日本专区| 亚洲另类在线视频| 在线一区二区三区做爰视频网站| 国产精品嫩草影院av蜜臀| 国产成人av资源| 国产精品成人免费| eeuss鲁片一区二区三区| 中文字幕在线视频一区| 成人av动漫网站| 亚洲精品日日夜夜| 欧美少妇bbb| 日韩主播视频在线| 欧美一三区三区四区免费在线看| 日本午夜一本久久久综合| 精品日韩欧美一区二区| 国产精品资源站在线| 国产蜜臀av在线一区二区三区| 岛国一区二区在线观看| 专区另类欧美日韩| 欧美日韩三级一区| 韩国一区二区在线观看| 欧美极品美女视频| 色婷婷av一区二区三区之一色屋| 亚洲午夜av在线| 精品国产一区二区三区不卡| 国产一区二区不卡| 亚洲精品一二三| 日韩一区二区在线播放| 国产精品一区二区免费不卡| 亚洲欧美怡红院| 欧美疯狂做受xxxx富婆| 免费欧美在线视频| 亚洲国产经典视频| 欧美日韩国产高清一区二区三区 | 欧美日韩色综合| 麻豆91在线观看| 日韩av中文在线观看| 亚洲精品在线电影| 色8久久人人97超碰香蕉987| 亚洲v日本v欧美v久久精品| 亚洲精品一区二区三区蜜桃下载| av在线不卡观看免费观看| 亚洲超碰精品一区二区| 久久天堂av综合合色蜜桃网| 色婷婷综合久久久中文一区二区 | jiyouzz国产精品久久| 一区二区三区日韩欧美| 精品少妇一区二区三区视频免付费| 岛国精品一区二区| 日韩成人一区二区三区在线观看| 国产三级欧美三级日产三级99| 日本道在线观看一区二区| 美女一区二区三区在线观看| 亚洲色图另类专区| 26uuu国产在线精品一区二区| 色综合色狠狠综合色| 国产寡妇亲子伦一区二区| 香蕉久久夜色精品国产使用方法| 欧美激情在线一区二区三区| 欧美一区午夜视频在线观看| 色国产精品一区在线观看| 国产成人精品免费网站| 日本不卡视频在线观看| 一区二区三区91| 国产精品嫩草影院com| 欧美精品一区二区三区四区| 欧美日韩免费电影| 成人18精品视频| 国产很黄免费观看久久| 久久99国产精品成人| 午夜精品久久久久久不卡8050| 中文子幕无线码一区tr| 国产日韩欧美一区二区三区综合| 欧美体内she精高潮| 99re热这里只有精品视频| 国产毛片精品视频| 精品一区二区三区在线观看国产| 丝袜美腿成人在线| 五月天激情综合| 亚洲国产日韩综合久久精品| 亚洲综合免费观看高清完整版| 中文字幕一区av| 国产精品麻豆一区二区| 欧美高清在线视频| 国产免费观看久久| 国产精品伦一区二区三级视频| 337p粉嫩大胆噜噜噜噜噜91av| 欧美本精品男人aⅴ天堂| 欧美tickling挠脚心丨vk| 在线电影欧美成精品| 777久久久精品| 91精品久久久久久久91蜜桃| 91精品久久久久久蜜臀| 日韩视频一区二区在线观看| 欧美成人精品1314www| 久久综合九色综合97婷婷| 久久欧美一区二区| 中文av一区特黄| 亚洲人成在线播放网站岛国 | 色婷婷综合久久久久中文| 99免费精品在线| 91丨porny丨首页| 欧美日韩精品久久久| 日韩一区二区三区电影在线观看| 日韩欧美专区在线| 久久久精品免费观看| **欧美大码日韩| 亚洲一区二区三区在线播放| 香蕉久久一区二区不卡无毒影院| 青青草一区二区三区| 国产精品99久久久久| 99re66热这里只有精品3直播| 91福利国产成人精品照片| 欧美一区二区在线播放| 久久人人超碰精品| 亚洲精品伦理在线| 蜜臀av一区二区| 成人黄动漫网站免费app| 欧美日韩国产成人在线免费| 欧美va亚洲va| 亚洲女性喷水在线观看一区| 视频一区国产视频| 成人小视频在线观看| 欧美老肥妇做.爰bbww视频| 久久久久久久久久久久久久久99| 椎名由奈av一区二区三区| 青青草国产成人99久久| 成人h版在线观看| 欧美日韩国产电影| 国产精品久久三区| 精品亚洲欧美一区| 91激情五月电影| 国产女人18毛片水真多成人如厕 | 欧美韩国日本不卡| 午夜亚洲国产au精品一区二区| 国产精品一区二区在线播放| 欧美性视频一区二区三区| 久久亚洲精精品中文字幕早川悠里 | 日韩一区二区在线看片| 17c精品麻豆一区二区免费| 免费成人在线观看| 在线观看视频91| 国产精品乱人伦| 麻豆91免费观看| 欧美日韩精品欧美日韩精品一综合| 国产日韩一级二级三级| 日韩制服丝袜av| 欧美又粗又大又爽| 中文字幕亚洲视频| 黑人精品欧美一区二区蜜桃| 3d成人h动漫网站入口| 亚洲精品高清在线| 成人avav影音| 欧美国产激情二区三区| 久久精品国产澳门| 欧美二区三区的天堂| 亚洲免费观看高清完整版在线 | 国内不卡的二区三区中文字幕| 欧美日韩三级在线| 一区二区高清免费观看影视大全| 国产.欧美.日韩| 国产日产精品1区| 极品少妇xxxx精品少妇| 日韩一级黄色大片| 免费一级片91| 日韩三级在线免费观看| 日本在线不卡视频| 欧美一级国产精品| 青娱乐精品在线视频| 在线不卡免费欧美| 捆绑紧缚一区二区三区视频| 日韩一区二区三区四区| 免费xxxx性欧美18vr| 日韩一区二区三区精品视频 | 精品国产一区二区三区久久影院 |