資源簡介
蔣老師課程的報告。其中有四個改進思路。
1.本報告內容系在蔣良孝老師課程的指導下,通過查閱論文和自行思考以及實驗驗證后撰寫的;
2.源碼部分位于weka-src\src\main\java\weka\classifiers\wangliyuID3,其中有報告中的前三個的源碼,可以參考,敬請指教;
3.上傳的目的是為了給有困難的同學一點提示。
代碼片段和文件信息
/*
?*????This?program?is?free?software;?you?can?redistribute?it?and/or?modify
?*????it?under?the?terms?of?the?GNU?General?Public?License?as?published?by
?*????the?Free?Software?Foundation;?either?version?2?of?the?License?or
?*????(at?your?option)?any?later?version.
?*
?*????This?program?is?distributed?in?the?hope?that?it?will?be?useful
?*????but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*????MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the
?*????GNU?General?Public?License?for?more?details.
?*
?*????You?should?have?received?a?copy?of?the?GNU?General?Public?License
?*????along?with?this?program;?if?not?write?to?the?Free?Software
?*????Foundation?Inc.?675?Mass?Ave?Cambridge?MA?02139?USA.
?*/
/*
?*????MacArffOpenFilesHandler.java
?*????Copyright?(C)?2011?University?of?Waikato?Hamilton?New?Zealand
?*
?*/
package?weka.gui;
import?java.io.*;
import?com.apple.eawt.OpenFilesHandler;
import?com.apple.eawt.AppEvent.OpenFilesEvent;
/**
?*?Helper?class?for?use?under?Mac?OS?X.?Associates?the?Explorer
?*?with?arff?and?xrff?file?types.?The?build.xml?script?copies?the
?*?compiled?MacArffOpenFilesHandler?class?from?the?resources
?*?directory?into?build/classes/weka/gui?before?the?executable
?*?jar?file?is?made.?Reflection?is?used?in?the?GUIChooser?to
?*?determine?if?the?OS?is?OS?X?and?if?so?this?handler?is
?*?registered.
?*
?*?@author?Mark?Hall?(mhall{[at]}pentaho{[dot]}com)
?*?@version?$Revision:?7210?$
?*/
public?class?MacArffOpenFilesHandler?implements?OpenFilesHandler?{
??public?void?openFiles(?OpenFilesEvent?arg0?)?{
????System.out.println(?“Opening?an?arff/xrff?file?under?Mac?OS?X...“?);
????File?toOpen?=?arg0.getFiles().get(0);
????if?(toOpen.toString().toLowerCase().endsWith(“.arff“)?||?
????????toOpen.toString().toLowerCase().endsWith(“.xrff“))?{
??????weka.gui.GUIChooser.createSingleton();
??????weka.gui.GUIChooser.getSingleton().showExplorer(toOpen.toString());????
????}?else?if?(toOpen.toString().toLowerCase().endsWith(“.kf“)?||
???????????????toOpen.toString().toLowerCase().endsWith(“.kfml“))?{
??????weka.gui.GUIChooser.createSingleton();
??????weka.gui.GUIChooser.getSingleton().showKnowledgeFlow(toOpen.toString());
????}
??}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????265??2017-12-18?19:12??課程報告及源碼\Readme.txt
?????文件????????453??2017-11-22?10:08??課程報告及源碼\weka-src\.classpath
?????文件????????384??2017-11-22?10:08??課程報告及源碼\weka-src\.project
?????文件???????1018??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\AllTests.class
?????文件???????2902??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AbstractAssociator.class
?????文件??????13583??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AbstractAssociatorTest.class
?????文件????????707??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AllTests.class
?????文件??????27714??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\Apriori.class
?????文件???????9925??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AprioriItemSet.class
?????文件????????935??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AprioriTest.class
?????文件????????277??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\Associator.class
?????文件???????6227??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\AssociatorEvaluation.class
?????文件???????5225??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\CaRuleGeneration.class
?????文件????????433??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\CARuleMiner.class
?????文件??????22501??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\CheckAssociator.class
?????文件???????7644??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FilteredAssociator.class
?????文件????????979??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FilteredAssociatorTest.class
?????文件????????958??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule$METRIC_TYPE$1.class
?????文件???????1118??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule$METRIC_TYPE$2.class
?????文件???????1086??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule$METRIC_TYPE$3.class
?????文件???????1038??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule$METRIC_TYPE$4.class
?????文件???????3036??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule$METRIC_TYPE.class
?????文件??????10584??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$AssociationRule.class
?????文件???????3351??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$BinaryItem.class
?????文件???????5526??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FPTreeNode.class
?????文件???????1516??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FPTreeRoot$Header.class
?????文件???????4643??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FPTreeRoot.class
?????文件???????3044??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FrequentBinaryItemSet.class
?????文件???????2238??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FrequentItemSets$1.class
?????文件???????3468??2017-12-03?22:43??課程報告及源碼\weka-src\bin\weka\associations\FPGrowth$FrequentItemSets.class
............此處省略5329個文件信息
評論
共有 條評論