资源简介
蒋老师课程的报告。其中有四个改进思路。
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个文件信息
评论
共有 条评论