Package adams.ml.preprocessing
Class AbstractColumnSubsetBatchFilter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.ml.preprocessing.AbstractFilter
-
- adams.ml.preprocessing.AbstractColumnSubsetFilter
-
- adams.ml.preprocessing.AbstractColumnSubsetBatchFilter
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,CapabilitiesHandler,BatchFilter,ColumnSubsetFilter,Filter,Serializable
public abstract class AbstractColumnSubsetBatchFilter extends AbstractColumnSubsetFilter implements BatchFilter
Ancestor for batch filters with column subset handling.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.ml.preprocessing.AbstractColumnSubsetFilter
m_ClassColumns, m_ColRange, m_ColRegExp, m_ColumnSubset, m_DataColumns, m_DropOtherColumns, m_OtherColumns
-
Fields inherited from class adams.ml.preprocessing.AbstractFilter
m_Initialized, m_OutputFormat
-
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 AbstractColumnSubsetBatchFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DatasetdoFilter(Dataset data)Filters the dataset coming through.protected abstract voiddoInitFilter(Dataset data)Filter-specific initialization.Datasetfilter(Dataset data)Filters the dataset coming through.protected voidinitFilter(Dataset data)Initializes the filter.protected abstract DatasetinitOutputFormat(Dataset data)Initializes the output format.protected voidpostInitFilter(Dataset data)After the filter has been initialized.protected voidpreInitFilter(Dataset data)Before the actual filter initialization.-
Methods inherited from class adams.ml.preprocessing.AbstractColumnSubsetFilter
colRangeTipText, colRegExpTipText, columnSubsetTipText, defineOptions, dropOtherColumnsTipText, getColRange, getColRegExp, getColumnSubset, getDropOtherColumns, initColumns, reset, setColRange, setColRegExp, setColumnSubset, setDropOtherColumns
-
Methods inherited from class adams.ml.preprocessing.AbstractFilter
appendData, appendHeader, getOutputFormat, isInitialized
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.ml.preprocessing.ColumnSubsetFilter
getOutputFormat, isInitialized
-
Methods inherited from interface adams.ml.preprocessing.Filter
getCapabilities
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
preInitFilter
protected void preInitFilter(Dataset data) throws Exception
Before the actual filter initialization. Initializes the columns.- Parameters:
data- the data to initialize with- Throws:
Exception- if initialization fails- See Also:
AbstractColumnSubsetFilter.initColumns(Dataset)
-
doInitFilter
protected abstract void doInitFilter(Dataset data) throws Exception
Filter-specific initialization.- Parameters:
data- the data to initialize with- Throws:
Exception- if initialization fails
-
initOutputFormat
protected abstract Dataset initOutputFormat(Dataset data) throws Exception
Initializes the output format.- Parameters:
data- the output format- Throws:
Exception- if initialization fails
-
postInitFilter
protected void postInitFilter(Dataset data) throws Exception
After the filter has been initialized. Sets the initialized flag.- Parameters:
data- the data to initialize with- Throws:
Exception- if initialization fails- See Also:
initOutputFormat(Dataset),AbstractFilter.isInitialized()
-
initFilter
protected void initFilter(Dataset data) throws Exception
Initializes the filter.- Parameters:
data- the data to initialize with- Throws:
Exception- if initialization fails- See Also:
preInitFilter(Dataset),doInitFilter(Dataset),postInitFilter(Dataset)
-
doFilter
protected abstract Dataset doFilter(Dataset data) throws Exception
Filters the dataset coming through.- Parameters:
data- the data to filter- Returns:
- the filtered data
- Throws:
Exception- if filtering fails
-
-