List of usage examples for weka.filters.unsupervised.attribute ReplaceMissingValues setIgnoreClass
public void setIgnoreClass(boolean newIgnoreClass)
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); } }