Class AbstractClusterMembershipPostProcessor
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.wekaclusterer.AbstractClustererPostProcessor
-
- adams.flow.transformer.wekaclusterer.AbstractClusterMembershipPostProcessor
-
- All Implemented Interfaces:
AdditionalInformationHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
AddCluster
,ClusterCenters
,ClusterCounts
,ClusterStatistics
public abstract class AbstractClusterMembershipPostProcessor extends AbstractClustererPostProcessor
Ancestor for post-processors that require a built clusterer and the dataset that was used to build the clusterer to be present in the model container.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_CLUSTERED_DATASET
the clustered full dataset.-
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 AbstractClusterMembershipPostProcessor()
-
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 WekaModelContainer
doPostProcess(WekaModelContainer cont)
Performs the actual post-processing.protected String[]
getContainerKeys()
Returns the keys that the processor adds/modifies.protected abstract weka.core.Instances
processDatasetWithClusterer(weka.core.Instances data, weka.clusterers.Clusterer clusterer)
Performs some form of processing on the full dataset.-
Methods inherited from class adams.flow.transformer.wekaclusterer.AbstractClustererPostProcessor
getAdditionalInformation, postProcess
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
VALUE_CLUSTERED_DATASET
public static final String VALUE_CLUSTERED_DATASET
the clustered full dataset.- See Also:
- Constant Field Values
-
-
Method Detail
-
getContainerKeys
protected String[] getContainerKeys()
Returns the keys that the processor adds/modifies.- Specified by:
getContainerKeys
in classAbstractClustererPostProcessor
- Returns:
- the keys, null of zero-length array for none
-
check
protected void check(WekaModelContainer cont)
Checks the model container.
Checks for Clusterer and Instances.- Overrides:
check
in classAbstractClustererPostProcessor
- Parameters:
cont
- the container to check- See Also:
WekaModelContainer.VALUE_MODEL
,WekaModelContainer.VALUE_DATASET
-
processDatasetWithClusterer
protected abstract weka.core.Instances processDatasetWithClusterer(weka.core.Instances data, weka.clusterers.Clusterer clusterer)
Performs some form of processing on the full dataset.
-
doPostProcess
protected WekaModelContainer doPostProcess(WekaModelContainer cont)
Performs the actual post-processing. Adds a new dataset to the container, using the key VALUE_CLUSTERED_DATASET- Specified by:
doPostProcess
in classAbstractClustererPostProcessor
- Parameters:
cont
- the container to post-process- Returns:
- the post-processed container
- See Also:
VALUE_CLUSTERED_DATASET
-
-