|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleBatchFilter
weka.filters.unsupervised.instance.AbstractRowFinderApplier
public abstract class AbstractRowFinderApplier
Ancestor for filters that apply RowFinder schemes to the data.
| Field Summary | |
|---|---|
protected boolean |
m_Invert
Whether to invert the row indices. |
protected RowFinder |
m_RowFinder
The classifier template used to do the classification. |
| Fields inherited from class weka.filters.SimpleFilter |
|---|
m_Debug |
| Fields inherited from class weka.filters.Filter |
|---|
m_FirstBatchDone, m_InputRelAtts, m_InputStringAtts, m_NewBatch, m_OutputRelAtts, m_OutputStringAtts |
| Constructor Summary | |
|---|---|
AbstractRowFinderApplier()
|
|
| Method Summary | |
|---|---|
protected abstract weka.core.Instances |
apply(weka.core.Instances data,
int[] indices)
Applies the indices to the data. |
protected abstract weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat)
Determines the output format based on the input format and returns this. |
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
boolean |
getInvert()
Returns whether the invert the row indices. |
String[] |
getOptions()
Gets the current settings of the classifier. |
RowFinder |
getRowFinder()
Returns the row finder used by the filter. |
String |
invertTipText()
Returns the tip text for this property. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
boolean |
mayRemoveInstanceAfterFirstBatchDone()
Derived filters may removed rows. |
protected abstract boolean |
mayRemoveInstances()
Method that returns whether the filter may remove instances after the first batch has been done. |
protected weka.core.Instances |
process(weka.core.Instances instances)
Processes the given data (may change the provided dataset) and returns the modified version. |
abstract String |
rowFinderTipText()
Returns the tip text for this property. |
void |
setInvert(boolean value)
Set whether the invert the row indices. |
void |
setOptions(String[] options)
Parses the options for this object. |
void |
setRowFinder(RowFinder value)
Sets the row finder to use. |
| Methods inherited from class weka.filters.SimpleBatchFilter |
|---|
batchFinished, hasImmediateOutputFormat, input |
| Methods inherited from class weka.filters.SimpleFilter |
|---|
debugTipText, getDebug, globalInfo, reset, setDebug, setInputFormat |
| Methods inherited from class weka.filters.Filter |
|---|
batchFilterFile, bufferInput, copyValues, copyValues, filterFile, flushInput, getCapabilities, getInputFormat, getOutputFormat, getRevision, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, 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 |
| Field Detail |
|---|
protected RowFinder m_RowFinder
protected boolean m_Invert
| Constructor Detail |
|---|
public AbstractRowFinderApplier()
| Method Detail |
|---|
public Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.filters.SimpleFilter
public void setOptions(String[] options)
throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class weka.filters.SimpleFilteroptions - the options to use
Exception - if setting of options failspublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.filters.SimpleFilterpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.filters.FilterCapabilitiesprotected abstract boolean mayRemoveInstances()
mayRemoveInstanceAfterFirstBatchDone()public boolean mayRemoveInstanceAfterFirstBatchDone()
mayRemoveInstanceAfterFirstBatchDone in class weka.filters.FiltermayRemoveInstances()public void setRowFinder(RowFinder value)
value - The row finder to be used (with its options set).public RowFinder getRowFinder()
public abstract String rowFinderTipText()
public void setInvert(boolean value)
value - true if to invert the indicespublic boolean getInvert()
public String invertTipText()
protected abstract weka.core.Instances determineOutputFormat(weka.core.Instances inputFormat)
throws Exception
determineOutputFormat in class weka.filters.SimpleFilterinputFormat - the input format to base the output format on
Exception - in case the determination goes wrong
protected abstract weka.core.Instances apply(weka.core.Instances data,
int[] indices)
data - the data to processindices - the indices to use
protected weka.core.Instances process(weka.core.Instances instances)
throws Exception
process in class weka.filters.SimpleFilterinstances - the data to process
Exception - in case the processing goes wrongSimpleBatchFilter.batchFinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||