Package adams.data.weka.columnfinder
Class RowFilteredColumnFinder
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.weka.columnfinder.AbstractColumnFinder
-
- adams.data.weka.columnfinder.AbstractTrainableColumnFinder
-
- adams.data.weka.columnfinder.AbstractFilteredColumnFinder
-
- adams.data.weka.columnfinder.RowFilteredColumnFinder
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<ColumnFinder>,SizeOfHandler,ColumnFinder,TrainableColumnFinder,Serializable
public class RowFilteredColumnFinder extends AbstractFilteredColumnFinder
This column finder first filters the rows before finding any columns on the subset of rows.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_ColumnFinderTrainedwhether the column finder was trained on the subset.protected RowFinderm_RowFinderthe RowFinder to use first.-
Fields inherited from class adams.data.weka.columnfinder.AbstractFilteredColumnFinder
m_ColumnFinder
-
Fields inherited from class adams.data.weka.columnfinder.AbstractTrainableColumnFinder
m_Trained
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description RowFilteredColumnFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected int[]doFindColumns(weka.core.Instances data)Returns the columns of interest in the dataset.protected booleandoTrainColumnFinder(weka.core.Instances data)Performs the actual training of the column finder with the specified dataset.RowFindergetRowFinder()Returns the row finder in use.StringglobalInfo()Returns a string describing the object.StringrowFinderTipText()Returns the tip text for this property.voidsetRowFinder(RowFinder value)Sets the row finder to use.-
Methods inherited from class adams.data.weka.columnfinder.AbstractFilteredColumnFinder
columnFinderTipText, getColumnFinder, setColumnFinder
-
Methods inherited from class adams.data.weka.columnfinder.AbstractTrainableColumnFinder
check, isColumnFinderTrained, reset, trainColumnFinder
-
Methods inherited from class adams.data.weka.columnfinder.AbstractColumnFinder
arrayToHashSet, compareTo, equals, findColumns, forCommandLine, forName, getColumnFinders, shallowCopy, shallowCopy
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.data.weka.columnfinder.ColumnFinder
findColumns
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Field Detail
-
m_RowFinder
protected RowFinder m_RowFinder
the RowFinder to use first.
-
m_ColumnFinderTrained
protected boolean m_ColumnFinderTrained
whether the column finder was trained on the subset.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractFilteredColumnFinder
-
setRowFinder
public void setRowFinder(RowFinder value)
Sets the row finder to use.- Parameters:
value- the row finder
-
getRowFinder
public RowFinder getRowFinder()
Returns the row finder in use.- Returns:
- the row finder
-
rowFinderTipText
public String rowFinderTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the gui
-
doTrainColumnFinder
protected boolean doTrainColumnFinder(weka.core.Instances data)
Performs the actual training of the column finder with the specified dataset.- Overrides:
doTrainColumnFinderin classAbstractFilteredColumnFinder- Parameters:
data- the training data- Returns:
- true if successfully trained
-
doFindColumns
protected int[] doFindColumns(weka.core.Instances data)
Returns the columns of interest in the dataset.- Specified by:
doFindColumnsin classAbstractColumnFinder- Parameters:
data- the dataset to inspect- Returns:
- the columns of interest
-
-