|
||||||||||
| 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.attribute.AbstractColumnFinderApplier
public abstract class AbstractColumnFinderApplier
Ancestor for filters that apply ColumnFinder schemes to the data.
| Field Summary | |
|---|---|
protected ColumnFinder |
m_ColumnFinder
The classifier template used to do the classification. |
protected boolean |
m_Invert
Whether to invert the column indices. |
| 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 | |
|---|---|
AbstractColumnFinderApplier()
|
|
| Method Summary | |
|---|---|
protected abstract weka.core.Instances |
apply(weka.core.Instances data,
int[] indices)
Applies the indices to the data. |
abstract String |
columnFinderTipText()
Returns the tip text for this property. |
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. |
ColumnFinder |
getColumnFinder()
Returns the column finder used by the filter. |
boolean |
getInvert()
Returns whether the invert the column indices. |
String[] |
getOptions()
Gets the current settings of the classifier. |
String |
invertTipText()
Returns the tip text for this property. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
protected weka.core.Instances |
process(weka.core.Instances instances)
Processes the given data (may change the provided dataset) and returns the modified version. |
void |
setColumnFinder(ColumnFinder value)
Sets the column finder to use. |
void |
setInvert(boolean value)
Set whether the invert the column indices. |
void |
setOptions(String[] options)
Parses the options for this object. |
| 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, 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 |
| Field Detail |
|---|
protected ColumnFinder m_ColumnFinder
protected boolean m_Invert
| Constructor Detail |
|---|
public AbstractColumnFinderApplier()
| 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
Exceptionpublic 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.FilterCapabilitiespublic void setColumnFinder(ColumnFinder value)
value - The column finder to be used (with its options set).public ColumnFinder getColumnFinder()
public abstract String columnFinderTipText()
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
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
ExceptionSimpleBatchFilter.batchFinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||