Example usage for weka.classifiers.trees M5P setSaveInstances

List of usage examples for weka.classifiers.trees M5P setSaveInstances

Introduction

In this page you can find the example usage for weka.classifiers.trees M5P setSaveInstances.

Prototype

public void setSaveInstances(boolean save) 

Source Link

Document

Set whether to save instance data at each node in the tree for visualization purposes

Usage

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;
}