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

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

?? sample.c

?? 這是vc開發的數據挖掘算法中的決策樹算法之see5算法源代碼.
?? C
字號:
/*************************************************************************//*									 *//*	 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.	 *//*									 *//*************************************************************************//*************************************************************************//*									 *//*	Sample program to demonstrate the use of See5/C5.0 classifiers	 *//*	--------------------------------------------------------------	 *//*									 *//*	Compilation:							 *//*									 *//*	    Unix: use an ANSI C compiler such as gcc and include	 *//*		  the math library, e.g. gcc sample.c -lm		 *//*									 *//*	    Windows: compile as a console application with symbol	 *//*		  "WIN32" defined					 *//*									 *//*	This program accepts three command-line options:		 *//*									 *//*	    -f <filestem>   specify the application name (required)	 *//*	    -r		    use rulesets instead of decision trees	 *//*	    -R		    use rulesets and show rules used		 *//*	    -x		    use a similar format as saved by the	 *//*			    cross-reference window			 *//*									 *//*	The program expects to find the following files:		 *//*									 *//*	    <filestem>.names (the application names file)		 *//*									 *//*	    <filestem>.rules or <filestem>.tree (the classifier	files	 *//*		 generated by C5.0 or See5)			 	 *//*									 *//*	    <filestem>.costs (optional -- the  costs file)		 *//*									 *//*	    <filestem>.cases (with a format similar to a .data file, but *//*		allowing classes to be given as '?' meaning 'unknown')	 *//*									 *//*	Please note: the names file must be exactly as it was when	 *//*	the classifier was generated.					 *//*									 *//*	For each case in <filestem.cases>, the program prints the	 *//*	given class and then the class predicted by the classifier	 *//*	together with the confidence of the prediction.			 *//*									 *//*	Revised January 2007						 *//*									 *//*************************************************************************/#include "defns.h"#include "global.c"#include "hooks.c"/*************************************************************************//*									 *//*	Main                                                             *//*									 *//*************************************************************************/int main(int Argc, char *Argv[])/*  ----  */{    FILE		*F;    Description		Case;    int			CaseNo=0, MaxClassLen=5, o, TotalRules=0,			StartList, CurrentPosition;    ClassNo		Predict, c;    Boolean		XRefForm=false;    extern String	OptArg, Option;    void		ShowRules(int);    /*  Process options  */    while ( (o = ProcessOption(Argc, Argv, "f+xrR")) )    {	switch (o)	{	case 'f':   FileStem = OptArg;		    break;	case 'r':   RULES = true;		    break;	case 'R':   RULES = RULESUSED = true;		    break;	case 'x':   XRefForm = true;		    break;	case '?':   printf("    **Unrecognised option %s\n", Option);		    exit(1);	}    }    /*  Read information on attribute names, values, and classes  */    if ( ! (F = GetFile(".names", "r")) ) Error(NOFILE, Fn, "");    GetNames(F);    /*  Read the appropriate classifier file.  Call CheckFile() to	determine the number of trials, then allocate space for	trees or rulesets  */    if ( RULES )    {	CheckFile(".rules", false);	RuleSet = AllocZero(TRIALS+1, CRuleSet);	ForEach(Trial, 0, TRIALS-1)	{	    RuleSet[Trial] = GetRules(".rules");	    TotalRules += RuleSet[Trial]->SNRules;	}	if ( RULESUSED )	{	    RulesUsed = Alloc(TotalRules + TRIALS, RuleNo);	}    }    else    {	CheckFile(".tree", false);	Pruned = AllocZero(TRIALS+1, Tree);	ForEach(Trial, 0, TRIALS-1)	{	    Pruned[Trial] = GetTree(".tree");	}    }    /*  Close the classifier file and reset the file variable  */        fclose(TRf);    TRf = 0;        /*  Now classify the cases in file <filestem>.cases.	This has the same format as a .data file except that	the class can be "?" to indicate that it is unknown.  */    if ( XRefForm )    {	ForEach(c, 1, MaxClass)	{	    if ( (o = strlen(ClassName[c])) > MaxClassLen ) MaxClassLen = o;	}	printf("%-15s %*s   [Predicted]%s\n\n",	       "Case", -MaxClassLen, "Class",	       ( RULESUSED ? "   Rules" : "" ));	StartList = 16 + MaxClassLen + 3 +		    ( MaxClassLen > 9 ? MaxClassLen + 2 : 11 ) + 3;    }    else    {	printf("Case\t\tGiven\t\tPredicted%s\n %s\t\tClass\t\tClass\n\n",		( RULESUSED ? "\t\t    Rules" : "" ),		( LabelAtt ? "ID" : "No" ));	StartList = 60;    }    if ( ! (F = GetFile(".cases", "r")) ) Error(NOFILE, Fn, "");    ClassSum = AllocZero(MaxClass+1, float);  /* used in classification */    Vote     = AllocZero(MaxClass+1, float);  /* used with boosting */    LineNo = 0;    while ( (Case = GetDescription(F, false)) )    {	/*  For this case, find the class predicted by See5/C5.0 model  */	Predict = Classify(Case);	/*  Print either case label or number  */	if ( LabelAtt )	{	    printf("%-15.15s ", (String) (IgnoredVals + SVal(Case,LabelAtt)));	}	else	{	    printf("%4d\t\t", ++CaseNo);	}	/*  Print the result for this case in alternative formats  */	if ( XRefForm )	{	    printf("%*s", -MaxClassLen, ClassName[Class(Case)]);	    CurrentPosition = 16 + MaxClassLen;	    if ( Class(Case) != Predict )	    {		printf("   [%s]", ClassName[Predict]);		CurrentPosition += 5 + strlen(ClassName[Predict]);	    }	}	else	{	    printf("%-15.15s %-15.15s [%.2f]",		    ClassName[Class(Case)], ClassName[Predict], Confidence);	    CurrentPosition = 54;	}	if ( RULESUSED ) ShowRules(StartList - CurrentPosition);	printf("\n");	/*  Free the memory used by this case  */	FreeLastCase(Case);    }    /*  Close the case file and free allocated memory  */        fclose(F);    FreeGlobals();        return 0;}/*************************************************************************//*									 *//*	Show rules that were used to classify a case.			 *//*	Classify() will have set RulesUsed[] to				 *//*	  number of active rules for trial 0,				 *//*	  first active rule, second active rule, ..., last active rule,	 *//*	  number of active rules for trial 1,				 *//*	  first active rule, second active rule, ..., last active rule,	 *//*	and so on.							 *//*									 *//*************************************************************************/void ShowRules(int Spaces)/*   ---------  */{    int	p, pLast, a, b, First;    printf("%*s", Spaces, "");    p = 0;    ForEach(Trial, 0, TRIALS-1)    {	pLast = p + RulesUsed[p];	ForEach(a, 1, RulesUsed[p])	{	    /*  Rules used are not in order, so find first  */	    First = 0;	    ForEach(b, p+1, pLast)	    {		if ( RulesUsed[b] &&		     ( ! First || RulesUsed[b] < RulesUsed[First] ) )		{		    First = b;		}	    }	    if ( TRIALS > 1 ) printf("%d/", Trial);	    printf("%d ", RulesUsed[First]);	    RulesUsed[First] = 0;	}	p = pLast + 1;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产综合视频在线观看 | 不卡的电影网站| 不卡的av电影在线观看| 欧美电影在哪看比较好| 日本一区二区电影| 丝瓜av网站精品一区二区| 丁香桃色午夜亚洲一区二区三区| 欧美日韩大陆一区二区| 欧美最新大片在线看| 欧美剧情电影在线观看完整版免费励志电影 | 久久精品国产亚洲高清剧情介绍| 成人app下载| 欧美v国产在线一区二区三区| 一区二区三区在线视频免费| 国产精品1区二区.| 亚洲精品在线一区二区| 日韩中文字幕一区二区三区| 色国产综合视频| 国产精品天干天干在线综合| 精品在线你懂的| 717成人午夜免费福利电影| 亚洲精品免费在线观看| av男人天堂一区| 国产欧美日本一区二区三区| 精品一区二区三区视频在线观看| 在线播放欧美女士性生活| 亚洲观看高清完整版在线观看| aa级大片欧美| 国产精品福利一区二区| 99久久久精品免费观看国产蜜| 亚洲国产经典视频| 成人激情免费视频| 国产精品久久久久一区二区三区共 | 一区二区三区蜜桃网| 成人av免费在线观看| 亚洲欧洲日韩在线| 91网站黄www| 亚洲精品日韩综合观看成人91| 色综合天天综合在线视频| 亚洲欧洲综合另类在线| 91成人在线观看喷潮| 亚洲一区二区三区国产| 91精品国产综合久久久久久漫画 | 美女性感视频久久| 欧美精品成人一区二区三区四区| 亚洲综合成人在线视频| 欧美日韩国产欧美日美国产精品| 五月婷婷久久丁香| 欧美videos中文字幕| 国产在线播放一区| 国产精品色呦呦| 色女孩综合影院| 日韩精品电影在线| 久久欧美中文字幕| 成人av电影在线| 94色蜜桃网一区二区三区| 一区在线中文字幕| 在线精品视频一区二区三四| 天堂久久一区二区三区| 精品国产a毛片| 99精品欧美一区二区三区综合在线| 亚洲色图.com| 3751色影院一区二区三区| 国产精品99久久久久久久vr | 亚洲精品水蜜桃| 欧美一区二区视频免费观看| 国产一区二区三区不卡在线观看| 中文字幕在线不卡一区| 欧美人妇做爰xxxⅹ性高电影 | 国产亚洲综合色| 色八戒一区二区三区| 免费成人在线视频观看| 国产精品福利电影一区二区三区四区| 欧美日韩中文一区| 国产成人av福利| 亚洲一二三四在线| 欧美激情中文不卡| 欧美一区二区三区系列电影| 欧美精品一区二区久久婷婷| 91网页版在线| 天堂在线亚洲视频| 亚洲欧洲日韩在线| 精品剧情在线观看| 欧美性xxxxxxxx| 国产一区二区三区精品视频| 亚洲午夜成aⅴ人片| 国产精品第一页第二页第三页| 日韩一区二区三区精品视频| 91在线看国产| 国产成人aaa| 激情深爱一区二区| 日韩电影免费一区| 亚洲夂夂婷婷色拍ww47| 国产精品久久毛片av大全日韩| 欧美理论在线播放| 在线观看不卡一区| 91麻豆6部合集magnet| 国产成人精品免费| 亚洲精品国产一区二区三区四区在线| 欧美肥胖老妇做爰| 色婷婷av久久久久久久| voyeur盗摄精品| 国产成人在线视频网址| 91传媒视频在线播放| 成人丝袜高跟foot| 国产精品影视在线观看| 六月丁香婷婷色狠狠久久| 一区二区不卡在线播放| 自拍视频在线观看一区二区| 久久久久久久综合日本| 精品久久久久久最新网址| 日韩午夜激情免费电影| 91精品国产乱| 日韩一区国产二区欧美三区| 欧美精品色综合| 91精品国产综合久久福利| 在线91免费看| 91精品国产色综合久久ai换脸 | 91蜜桃免费观看视频| 不卡av在线免费观看| 成人av资源站| 精品嫩草影院久久| 日本一区中文字幕| 亚洲资源在线观看| 亚洲图片一区二区| 天天综合网天天综合色| 婷婷综合另类小说色区| 亚洲成va人在线观看| 亚洲大片免费看| 日本系列欧美系列| 国产一区二区中文字幕| 成人一二三区视频| 91在线国产福利| 91久久免费观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 国产午夜久久久久| 国产精品色哟哟网站| 亚洲精品亚洲人成人网 | 91社区在线播放| 欧美性xxxxxx少妇| 亚洲精品在线一区二区| 国产精品久久久久久久裸模 | 麻豆成人久久精品二区三区红| 色爱区综合激月婷婷| 久久精品亚洲麻豆av一区二区| 精品久久一二三区| 国产欧美精品在线观看| 一区二区三区欧美激情| 日韩国产欧美在线观看| 国产在线国偷精品免费看| 成人美女视频在线观看18| 欧美伊人精品成人久久综合97| 91精品国产乱| 中文字幕一区二区三区av| 婷婷成人激情在线网| 国产成人在线色| 欧美日韩日本视频| 国产日韩欧美亚洲| 日韩综合小视频| 成人一区二区视频| 欧美蜜桃一区二区三区| 久久久国产精品麻豆| 亚洲一区二区三区不卡国产欧美| 国产精品一区免费视频| 欧美日韩国产欧美日美国产精品| 国产欧美综合在线观看第十页| 一区二区三区色| 国产成人一级电影| 欧美大片日本大片免费观看| 成人中文字幕合集| 欧美影院一区二区| 国产女人18水真多18精品一级做| 99这里只有久久精品视频| 欧美肥大bbwbbw高潮| 伊人色综合久久天天人手人婷| 国产自产视频一区二区三区| 欧美一a一片一级一片| 国产精品美女久久久久高潮| 美洲天堂一区二卡三卡四卡视频| 在线观看亚洲a| 中文字幕永久在线不卡| 国产一区二区三区久久久| 日韩欧美高清dvd碟片| 亚洲成人黄色小说| 在线观看免费亚洲| 一区二区日韩av| 91免费看片在线观看| 欧美国产日韩一二三区| 韩国av一区二区三区| 精品国产区一区| 秋霞av亚洲一区二区三| 欧美日本在线观看| 亚洲成a人v欧美综合天堂下载| 成人黄色av电影| 国产精品三级av在线播放| 国产成人精品一区二区三区四区 | 欧美丝袜丝nylons| 一区二区三区不卡在线观看| 色综合中文字幕国产 | 91视视频在线观看入口直接观看www |