|
||||||||||
| 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.FlowFilter
public class FlowFilter
Processes the data with a flow. The flow's outer control actor must be a adams.flow.control.SubProcess actor, which takes weka.core.Instances as input and generates weka.core.Instances again.
Valid options are:-D Turns on output of debugging information.
-flow-file <file> The flow to use for processing the data. (default: .)
| Field Summary | |
|---|---|
protected FlowFile |
m_FlowFile
the flow file to process the data with. |
protected SubProcess |
m_SubProcess
the flow for processing the data. |
| 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 | |
|---|---|
FlowFilter()
|
|
| Method Summary | |
|---|---|
protected weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat)
Determines the output format based on the input format and returns this. |
String |
flowFileTipText()
Returns the tip text for this property. |
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
FlowFile |
getFlowFile()
Returns the flow to process the data with. |
String[] |
getOptions()
returns the options of the current setup. |
String |
globalInfo()
Returns a string describing this classifier. |
Enumeration |
listOptions()
Gets 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. |
protected void |
reset()
Resets the filter. |
void |
setFlowFile(FlowFile value)
Sets the flow to process the data with. |
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, 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 FlowFile m_FlowFile
protected SubProcess m_SubProcess
| Constructor Detail |
|---|
public FlowFilter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class weka.filters.SimpleFilterprotected void reset()
reset in class weka.filters.SimpleFilterpublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.filters.SimpleFilterpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.filters.SimpleFilter
public void setOptions(String[] options)
throws Exception
-D Turns on output of debugging information.
-flow-file <file> The flow to use for processing the data. (default: .)
setOptions in interface weka.core.OptionHandlersetOptions in class weka.filters.SimpleFilteroptions - the options to use
Exception - if the option setting failspublic void setFlowFile(FlowFile value)
value - the flowpublic FlowFile getFlowFile()
public String flowFileTipText()
protected 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 wrongpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.filters.FilterCapabilities
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 wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||