dectreerandomapp.java

来自「Decision Tree Decision Tree Decision Tre」· Java 代码 · 共 61 行

JAVA
61
字号
/* -------------------------------------------------------------------------- *//*                                                                            *//*           D E C I S S I O N   T R E E   A P P L I C A T I O N              *//*                                (R A N D O M)                               *//*                                                                            *//*                                Frans Coenen                                *//*                                                                            *//*                         Thursday 8th November 2007                         *//*                                                                            *//* -------------------------------------------------------------------------- */// Dept Computer Science, University of Liverpool//import lucsKDD_ARM.*;import java.io.*;// decision tree application class using frequency of // attribute occurance as the "splitting criteria" (so not // really random).class DecTreeRandomApp {    // ------------------- FIELDS ------------------------    // Mone    // ---------------- CONSTRUCTORS ---------------------    // None    // ------------------ METHODS ------------------------    /* MAIN */    public static void main(String[] args) throws IOException {	// Create instance of class decisionTree        DecTreeRandom newDecisionTree = new DecTreeRandom(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();        }    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?