Example usage for weka.filters.unsupervised.attribute ReplaceMissingValues setIgnoreClass

List of usage examples for weka.filters.unsupervised.attribute ReplaceMissingValues setIgnoreClass

Introduction

In this page you can find the example usage for weka.filters.unsupervised.attribute ReplaceMissingValues setIgnoreClass.

Prototype

public void setIgnoreClass(boolean newIgnoreClass) 

Source Link

Document

Set the IgnoreClass value.

Usage

From source file:org.opentox.jaqpot3.qsar.util.SimpleMVHFilter.java

License:Open Source License

public Instances filter(Instances data) throws JaqpotException {

    ReplaceMissingValues replacer = new ReplaceMissingValues();
    try {//from w w w  . j  a v a2  s  .  co m
        replacer.setInputFormat(data);
        replacer.setIgnoreClass(ignoreClass);
        Instances filtered_data = ReplaceMissingValues.useFilter(data, replacer);
        return filtered_data;
    } catch (Exception ex) {
        throw new JaqpotException("Cannot apply missing values filtering", ex);
    }
}