Class AbstractMultiClassPLS

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, adams.core.TechnicalInformationHandler, Serializable, weka.core.CapabilitiesHandler, GenericPLSMatrixAccess
    Direct Known Subclasses:
    KernelPLS

    public abstract class AbstractMultiClassPLS
    extends AbstractPLS
    Ancestor for schemes that predict multiple classes.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_ClassAttributes

        protected adams.core.base.BaseRegExp m_ClassAttributes
        the regular expression for identifying class attributes (besides an explicitly set one).
      • m_Missing

        protected weka.filters.Filter m_Missing
        for replacing missing values
      • m_Filter

        protected weka.filters.Filter m_Filter
        for centering the data
      • m_ClassAttributeIndices

        protected gnu.trove.list.TIntList m_ClassAttributeIndices
        the class attribute indices.
      • m_ClassStdDev

        protected Map<Integer,​Double> m_ClassStdDev
        the class stddev.
    • Constructor Detail

      • AbstractMultiClassPLS

        public AbstractMultiClassPLS()
    • Method Detail

      • reset

        public void reset()
        Resets the scheme.
        Overrides:
        reset in class AbstractPLS
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractPLS
      • getDefaultClassAttributes

        protected adams.core.base.BaseRegExp getDefaultClassAttributes()
        Returns the default regular expression for the class attributes.
        Returns:
        the default
      • setClassAttributes

        public void setClassAttributes​(adams.core.base.BaseRegExp value)
        Sets the regular expression for identifying the class attributes (besides an explicitly set one).
        Parameters:
        value - the regular expression
      • getClassAttributes

        public adams.core.base.BaseRegExp getClassAttributes()
        Returns the regular expression for identifying the class attributes (besides an explicitly set one).
        Returns:
        the regular expression
      • classAttributesTipText

        public String classAttributesTipText()
        Returns the tip text for this property
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • determineOutputFormat

        public weka.core.Instances determineOutputFormat​(weka.core.Instances input)
                                                  throws Exception
        Determines the output format based on the input format and returns this.
        Specified by:
        determineOutputFormat in class AbstractPLS
        Parameters:
        input - the input format to base the output format on
        Returns:
        the output format
        Throws:
        Exception - in case the determination goes wrong
      • preTransform

        protected weka.core.Instances preTransform​(weka.core.Instances instances,
                                                   Map<String,​Object> params)
                                            throws Exception
        Preprocesses the data.
        Specified by:
        preTransform in class AbstractPLS
        Parameters:
        instances - the data to process
        params - additional parameters
        Returns:
        the preprocessed data
        Throws:
        Exception
      • postTransform

        protected weka.core.Instances postTransform​(weka.core.Instances instances,
                                                    Map<String,​Object> params)
                                             throws Exception
        Postprocesses the data.
        Specified by:
        postTransform in class AbstractPLS
        Parameters:
        instances - the data to process
        params - additional parameters
        Returns:
        the postprocessed data
        Throws:
        Exception