Example usage for weka.filters.unsupervised.attribute ClassAssigner setInputFormat

List of usage examples for weka.filters.unsupervised.attribute ClassAssigner setInputFormat

Introduction

In this page you can find the example usage for weka.filters.unsupervised.attribute ClassAssigner setInputFormat.

Prototype

@Override
public boolean setInputFormat(Instances instanceInfo) throws Exception 

Source Link

Document

Sets the format of the input instances.

Usage

From source file:newsclassifier.NewsClassifier.java

public void ClassAssigner() throws Exception {
    ClassAssigner filter = new ClassAssigner();
    filter.setInputFormat(data);
    //filter3.setClassIndex("last");
    filter.setClassIndex("first");
    data = Filter.useFilter(data, filter);
}