adams.flow.transformer.wekaclusterer
Class AbstractClusterMembershipPostProcessor

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.transformer.wekaclusterer.AbstractClustererPostProcessor
              extended by adams.flow.transformer.wekaclusterer.AbstractClusterMembershipPostProcessor
All Implemented Interfaces:
AdditionalInformationHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable
Direct Known Subclasses:
ClusterCenters

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: 4995 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
static String VALUE_CLUSTERED_DATASET
          the clustered full dataset.
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
AbstractClusterMembershipPostProcessor()
           
 
Method Summary
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, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALUE_CLUSTERED_DATASET

public static final String VALUE_CLUSTERED_DATASET
the clustered full dataset.

See Also:
Constant Field Values
Constructor Detail

AbstractClusterMembershipPostProcessor

public AbstractClusterMembershipPostProcessor()
Method Detail

getContainerKeys

protected String[] getContainerKeys()
Returns the keys that the processor adds/modifies.

Specified by:
getContainerKeys in class AbstractClustererPostProcessor
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 class AbstractClustererPostProcessor
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 class AbstractClustererPostProcessor
Parameters:
cont - the container to post-process
Returns:
the post-processed container
See Also:
VALUE_CLUSTERED_DATASET


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.