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:
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:
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.
-
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
-
-
-
-
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
-
-