adams.data.weka.rowfinder
Class AbstractTrainableRowFinder
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.weka.rowfinder.AbstractRowFinder
adams.data.weka.rowfinder.AbstractTrainableRowFinder
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<RowFinder>, SizeOfHandler, RowFinder, TrainableRowFinder, Serializable
- Direct Known Subclasses:
- AbstractFilteredRowFinder, FilteredIQR, MultiRowFinder
public abstract class AbstractTrainableRowFinder
- extends AbstractRowFinder
- implements TrainableRowFinder
Ancestor for RowFinder algorithms that can be trained.
- Version:
- $Revision: 5728 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
|
Field Summary |
protected boolean |
m_Trained
whether the row finder was trained already. |
|
Method Summary |
protected void |
check(weka.core.Instances data)
Checks the data. |
protected abstract boolean |
doTrainRowFinder(weka.core.Instances data)
Performs the actual training of the row finder with the specified dataset. |
boolean |
isRowFinderTrained()
Checks whether the row finder has been trained. |
protected void |
reset()
Resets the object, including the trained state. |
boolean |
trainRowFinder(weka.core.Instances data)
Trains the row finder with the specified dataset. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
m_Trained
protected boolean m_Trained
- whether the row finder was trained already.
AbstractTrainableRowFinder
public AbstractTrainableRowFinder()
reset
protected void reset()
- Resets the object, including the trained state.
- Overrides:
reset in class AbstractOptionHandler
doTrainRowFinder
protected abstract boolean doTrainRowFinder(weka.core.Instances data)
- Performs the actual training of the row finder with the specified dataset.
- Parameters:
data - the training data
- Returns:
- true if successfully trained
trainRowFinder
public boolean trainRowFinder(weka.core.Instances data)
- Trains the row finder with the specified dataset.
- Specified by:
trainRowFinder in interface TrainableRowFinder
- Parameters:
data - the training data
- Returns:
- true if successfully trained
isRowFinderTrained
public boolean isRowFinderTrained()
- Checks whether the row finder has been trained.
- Specified by:
isRowFinderTrained in interface TrainableRowFinder
- Returns:
- true if the row finder has been trained already
check
protected void check(weka.core.Instances data)
- Checks the data.
Trains the row finder with the given data if not yet trained.
- Overrides:
check in class AbstractRowFinder
- Parameters:
data - the data to check
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.