Example usage for weka.classifiers.rules OneR toString

List of usage examples for weka.classifiers.rules OneR toString

Introduction

In this page you can find the example usage for weka.classifiers.rules OneR toString.

Prototype

@Override
public String toString() 

Source Link

Document

Returns a description of the classifier

Usage

From source file:controller.OneRBean.java

public void calculate() {
    output = column;//from   ww w.  j a va2 s.c  o m
    int index = columns.indexOf(column);
    OneR one = new OneR();
    inst.setClassIndex(index);
    inst.firstInstance();
    try {
        one.buildClassifier(inst);
        output = one.toString();// + "<br /> asdfasdfasdf";
    } catch (Exception ex) {
        Logger.getLogger(OneRBean.class.getName()).log(Level.SEVERE, null, ex);
    }
}