List of usage examples for weka.classifiers.trees M5P setSaveInstances
public void setSaveInstances(boolean save)
From source file:cn.ict.zyq.bestConf.COMT2.COMT2.java
License:Open Source License
private static M5P buildModel(Instances modelInstances, int numOfInstanceInLeaf) throws Exception { M5P retval = new M5P(); retval.setSaveInstances(true); retval.setOptions(Utils.splitOptions("-N -L -M " + numOfInstanceInLeaf)); retval.buildClassifier(modelInstances); return retval; }