Class 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 Detail

      • AbstractClustererPostProcessor

        public AbstractClustererPostProcessor()
    • 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 interface adams.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