|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.filters.Filter | +--weka.filters.RSReplaceMissingValues
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_Debug, m_NewBatch |
Constructor Summary | |
RSReplaceMissingValues()
|
|
RSReplaceMissingValues(int d)
|
Method Summary | |
boolean |
batchFinished()
Signify that this batch of input to the filter is finished. |
String |
debugTipText()
|
int |
getDebug()
Get the value of debug. |
boolean |
input(Instance instance)
Input an instance for filtering. |
static void |
main(String[] argv)
Main method for testing this class. |
void |
setDebug(int v)
Set the value of debug. |
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances. |
Methods inherited from class weka.filters.Filter |
batchFilterFile, bufferInput, copyStringValues, copyStringValues, filterFile, flushInput, getInputFormat, getInputStringIndex, getOutputFormat, getOutputStringIndex, getStringIndices, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputFormatPeek, outputPeek, push, resetQueue, setOutputFormat, useFilter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RSReplaceMissingValues()
public RSReplaceMissingValues(int d)
Method Detail |
public int getDebug()
public void setDebug(int v)
v
- Value to assign to debug.public String debugTipText()
public boolean setInputFormat(Instances instanceInfo) throws Exception
setInputFormat
in class Filter
instanceInfo
- 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(Instance instance)
input
in class Filter
instance
- the input instance
IllegalStateException
- if no input format has been set.public boolean batchFinished() throws Exception
batchFinished
in class Filter
IllegalStateException
- if no input structure has been defined
Exception
- if there was a problem finishing the batch.public 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 |