List of usage examples for weka.classifiers AbstractClassifier runClassifier
public static void runClassifier(Classifier classifier, String[] options)
From source file:ensembles.RandomForests.java
public void runClassBalanced() { ClassBalancedND classBalanced = new ClassBalancedND(); Bagging f = new Bagging(); f.setClassifier(classBalanced);/*from w w w.ja va2 s. c o m*/ String[] arg = new String[2]; arg[0] = "-t"; //training arg[1] = "/Users/katie/NetBeansProjects/weka/trunk/packages/internal/ensemblesOfNestedDichotomies/out/nd/mfeatFac/NDfold1.arff"; // arg[2] = "-T"; // arg[3] = "/Users/katie/NetBeansProjects/weka/trunk/packages/internal/ensemblesOfNestedDichotomies/out/nd/mfeatFac/NDtest1.arff"; // arg[2] = "-W"; //full name of the base classifier // arg[3] = "weka.classifiers.functions.Logistic"; AbstractClassifier.runClassifier(f, arg); }