|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.filters.Filter
weka.filters.unsupervised.attribute.ReplaceMissingValuesWithZero
public class ReplaceMissingValuesWithZero
Replaces all missing values for nominal and numeric attributes in a dataset with the modes and means from the training data.
| Field Summary |
|---|
| Fields inherited from class weka.filters.Filter |
|---|
m_FirstBatchDone, m_InputRelAtts, m_InputStringAtts, m_NewBatch, m_OutputRelAtts, m_OutputStringAtts |
| Constructor Summary | |
|---|---|
ReplaceMissingValuesWithZero()
|
|
| Method Summary | |
|---|---|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
String |
getRevision()
Returns the revision string. |
String |
globalInfo()
Returns a string describing this filter |
boolean |
input(weka.core.Instance instance)
Input an instance for filtering. |
static void |
main(String[] argv)
Main method for testing this class. |
boolean |
setInputFormat(weka.core.Instances instanceInfo)
Sets the format of the input instances. |
| Methods inherited from class weka.filters.Filter |
|---|
batchFilterFile, batchFinished, bufferInput, copyValues, copyValues, filterFile, flushInput, getCapabilities, getInputFormat, getOutputFormat, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputFormatPeek, outputPeek, push, resetQueue, runFilter, setOutputFormat, testInputFormat, toString, useFilter, wekaStaticWrapper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReplaceMissingValuesWithZero()
| Method Detail |
|---|
public String globalInfo()
public weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.filters.FilterCapabilities
public boolean setInputFormat(weka.core.Instances instanceInfo)
throws Exception
setInputFormat in class weka.filters.FilterinstanceInfo - an Instances object containing the input
instance structure (any instances contained in the object are
ignored - only the structure is required).
Exception - if the input format can't be set
successfullypublic boolean input(weka.core.Instance instance)
input in class weka.filters.Filterinstance - the input instance
IllegalStateException - if no input format has been set.public String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.filters.Filterpublic static void main(String[] argv)
argv - should contain arguments to the filter:
use -h for help
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||