Example usage for weka.classifiers.trees M5P setOptions

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

Introduction

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

Prototype

@Override
public void setOptions(String[] options) throws Exception 

Source Link

Document

Parses a given list of options.

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);/*from ww w .j  a va  2  s  .  c  o  m*/
    retval.setOptions(Utils.splitOptions("-N -L -M " + numOfInstanceInLeaf));
    retval.buildClassifier(modelInstances);
    return retval;
}