Example usage for weka.filters.supervised.attribute Discretize setOptions

List of usage examples for weka.filters.supervised.attribute Discretize setOptions

Introduction

In this page you can find the example usage for weka.filters.supervised.attribute Discretize setOptions.

Prototype

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

Source Link

Document

Parses a given list of options.

Usage

From source file:tucil.dua.ai.TucilDuaAi.java

public static Instances Discretize() throws Exception {
    Discretize discretize = new Discretize();
    String[] options = new String[2];
    options[0] = "-R";
    options[1] = "1";
    discretize.setOptions(options);
    discretize.setInputFormat(datas);//from   w ww .j av  a2 s.  c  o m
    return Filter.useFilter(datas, discretize);
}