adams.data.spreadsheet.columnfinder
Class AbstractTrainableColumnFinder
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.spreadsheet.columnfinder.AbstractColumnFinder
adams.data.spreadsheet.columnfinder.AbstractTrainableColumnFinder
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, ShallowCopySupporter<ColumnFinder>, SizeOfHandler, ColumnFinder, TrainableColumnFinder, Serializable
- Direct Known Subclasses:
- AbstractFilteredColumnFinder, MultiColumnFinder
public abstract class AbstractTrainableColumnFinder
- extends AbstractColumnFinder
- implements TrainableColumnFinder
Ancestor for ColumnFinder algorithms that can be trained.
- Version:
- $Revision: 6066 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
|
Field Summary |
protected boolean |
m_Trained
whether the column finder was trained already. |
| 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 column finder was trained already.
AbstractTrainableColumnFinder
public AbstractTrainableColumnFinder()
reset
protected void reset()
- Resets the object, including the trained state.
- Overrides:
reset in class AbstractOptionHandler
doTrainColumnFinder
protected abstract boolean doTrainColumnFinder(SpreadSheet data)
- Performs the actual training of the column finder with the specified spreadsheet.
- Parameters:
data - the training data
- Returns:
- true if successfully trained
trainColumnFinder
public boolean trainColumnFinder(SpreadSheet data)
- Trains the column finder with the specified spreadsheet.
- Specified by:
trainColumnFinder in interface TrainableColumnFinder
- Parameters:
data - the training data
- Returns:
- true if successfully trained
isColumnFinderTrained
public boolean isColumnFinderTrained()
- Checks whether the column finder has been trained.
- Specified by:
isColumnFinderTrained in interface TrainableColumnFinder
- Returns:
- true if the column finder has been trained already
check
protected void check(SpreadSheet data)
- Checks the data.
Trains the column finder with the given data if not yet trained.
- Overrides:
check in class AbstractColumnFinder
- Parameters:
data - the data to check
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.