Class AbstractClustererPostProcessor
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.wekaclusterer.AbstractClustererPostProcessor
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler
,adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
- Direct Known Subclasses:
AbstractClusterMembershipPostProcessor
,AverageSilhouetteCoefficient
,MultiClustererPostProcessor
,PassThrough
public abstract class AbstractClustererPostProcessor extends adams.core.option.AbstractOptionHandler implements adams.core.AdditionalInformationHandler
Ancestor for post-processors for output that the WekaClusterer transformer produces.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractClustererPostProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
check(WekaModelContainer cont)
Checks the model container.protected abstract WekaModelContainer
doPostProcess(WekaModelContainer cont)
Performs the actual post-processing.String
getAdditionalInformation()
Returns the additional information.protected abstract String[]
getContainerKeys()
Returns the keys that the processor adds/modifies.WekaModelContainer
postProcess(WekaModelContainer cont)
Post-processes the model container.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getContainerKeys
protected abstract String[] getContainerKeys()
Returns the keys that the processor adds/modifies.- Returns:
- the keys, null of zero-length array for none
-
getAdditionalInformation
public String getAdditionalInformation()
Returns the additional information.- Specified by:
getAdditionalInformation
in interfaceadams.core.AdditionalInformationHandler
- Returns:
- the additional information
-
check
protected void check(WekaModelContainer cont)
Checks the model container.
Default implementation only ensures that it is not null.- Parameters:
cont
- the container to check
-
doPostProcess
protected abstract WekaModelContainer doPostProcess(WekaModelContainer cont)
Performs the actual post-processing.- Parameters:
cont
- the container to post-process- Returns:
- the post-processed container
-
postProcess
public WekaModelContainer postProcess(WekaModelContainer cont)
Post-processes the model container.- Parameters:
cont
- the container to post-process- Returns:
- the (potentially) post-processed container
-
-