Monday, January 23, 2012

weka - Use WEKA in your Java code

weka - Use WEKA in your Java code: " import weka.classifiers.trees.J48;
...
String[] options = new String[1];
options[0] = "-U"; // unpruned tree
J48 tree = new J48(); // new instance of tree
tree.setOptions(options); // set the options
tree.buildClassifier(data); // build classifier"

'via Blog this'