Class AbstractSelectionProcessor
- java.lang.Object
-
- weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
-
- weka.filters.unsupervised.instance.multirowprocessor.processor.AbstractSelectionProcessor
-
- All Implemented Interfaces:
GlobalInfoSupporter,Serializable,weka.core.OptionHandler
- Direct Known Subclasses:
AbstractRangeBasedSelectionProcessor,PassThrough
public abstract class AbstractSelectionProcessor extends AbstractMultiRowProcessorPlugin
Ancestor for row selection processors.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
DEBUG, m_Debug
-
-
Constructor Summary
Constructors Constructor Description AbstractSelectionProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(List<weka.core.Instance> rows)Hook method for performing checks.protected abstract List<weka.core.Instance>doProcessRows(List<weka.core.Instance> rows)Returns the list of row indices generated from the data.abstract weka.core.InstancesgenerateOutputFormat(weka.core.Instances data)Returns the format for the output data.List<weka.core.Instance>processRows(List<weka.core.Instance> rows)Returns the list of row indices generated from the data.-
Methods inherited from class weka.filters.unsupervised.instance.multirowprocessor.AbstractMultiRowProcessorPlugin
debugMsg, debugTipText, getDebug, getOptions, globalInfo, listOptions, reset, setDebug, setOptions
-
-
-
-
Method Detail
-
generateOutputFormat
public abstract weka.core.Instances generateOutputFormat(weka.core.Instances data) throws ExceptionReturns the format for the output data.- Parameters:
data- the input data- Returns:
- the output format
- Throws:
Exception- if fails to determine output format
-
check
protected String check(List<weka.core.Instance> rows)
Hook method for performing checks.- Parameters:
rows- the data to check- Returns:
- null if checks passed, otherwise error message
-
doProcessRows
protected abstract List<weka.core.Instance> doProcessRows(List<weka.core.Instance> rows) throws Exception
Returns the list of row indices generated from the data.- Parameters:
rows- the rows to process- Returns:
- the list of selections
- Throws:
Exception- if checks or selection failed
-
-