📄 dectreeinfogainapp.java
字号:
/* -------------------------------------------------------------------------- *//* *//* D E C I S S I O N T R E E A P P L I C A T I O N *//* (I N F O R M A T I O N G A I N) *//* *//* Frans Coenen *//* *//* Thursday 20th November 2007 *//* *//* -------------------------------------------------------------------------- */// Dept Computer Science, University of Liverpool//import lucsKDD_ARM.*;import java.io.*;// decision tree application class using information gain as // the "splitting criteria".class DecTreeInfoGainApp { // ------------------- FIELDS ------------------------ // Mone // ---------------- CONSTRUCTORS --------------------- // None // ------------------ METHODS ------------------------ /* MAIN */ public static void main(String[] args) throws IOException { // Create instance of class decisionTree DecTreeInfoGain newDecisionTree = new DecTreeInfoGain(args); // Read data to be mined from file newDecisionTree.inputDataSet(); // Output opportunity //newDecisionTree.outputDataArray(); // Reorder newDecisionTree.idInputDataOrdering(); // Process Data double time1 = (double) System.currentTimeMillis(); newDecisionTree.startClassification(); newDecisionTree.outputDuration(time1, (double) System.currentTimeMillis()); // Output //newDecisionTree.outputNumClasses(); //newDecisionTree.outputTestDataArray(); //newDecisionTree.outputDataArray(); //newDecisionTree.outputDecTree(); //newDecisionTree.outputRulesWithDefault(); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -