Class PLSClassifierWeightedWithLoadings

  • All Implemented Interfaces:
    Serializable, Cloneable, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, PLSMatrixAccess, weka.core.RevisionHandler, weka.core.WeightedInstancesHandler

    public class PLSClassifierWeightedWithLoadings
    extends PLSClassifierWeighted
    implements PLSMatrixAccess
    A wrapper classifier for the PLSFilter, utilizing the PLSFilter's ability to perform predictions.

    Allows access to the PLS matrices in case the filter is a PLSFilterWithLoadings instance.

    Valid options are:

     -filter <filter specification>
      The PLS filter to use. Full classname of filter to include,  followed by scheme options.
      (default: weka.filters.supervised.attribute.PLSFilter)
     -D
      If set, classifier is run in debug mode and
      may output additional info to the console
     
     Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):
     
     -D
      Turns on output of debugging information.
     -C <num>
      The number of components to compute.
      (default: 20)
     -U
      Updates the class attribute as well.
      (default: off)
     -M
      Turns replacing of missing values on.
      (default: off)
     -A <SIMPLS|PLS1>
      The algorithm to use.
      (default: PLS1)
     -P <none|center|standardize>
      The type of preprocessing that is applied to the data.
      (default: center)
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • PLSClassifierWeightedWithLoadings

        public PLSClassifierWeightedWithLoadings()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing classifier
        Overrides:
        globalInfo in class PLSClassifierWeighted
        Returns:
        a description suitable for displaying in the explorer/experimenter gui
      • getDefaultFilter

        public weka.filters.supervised.attribute.PLSFilter getDefaultFilter()
        Returns the default PLS filter.
        Overrides:
        getDefaultFilter in class PLSClassifierWeighted
        Returns:
        the default filter
      • getPLS1RegVector

        public weka.core.matrix.Matrix getPLS1RegVector()
        Returns the reg vector.
        Specified by:
        getPLS1RegVector in interface PLSMatrixAccess
        Returns:
        the vector
      • getPLS1P

        public weka.core.matrix.Matrix getPLS1P()
        Returns the PLS1 P matrix.
        Specified by:
        getPLS1P in interface PLSMatrixAccess
        Returns:
        the matrix
      • getPLS1W

        public weka.core.matrix.Matrix getPLS1W()
        Returns the PLS1 W matrix.
        Specified by:
        getPLS1W in interface PLSMatrixAccess
        Returns:
        the matrix
      • getPLS1bHat

        public weka.core.matrix.Matrix getPLS1bHat()
        Returns the PLS1 b "hat" matrix.
        Specified by:
        getPLS1bHat in interface PLSMatrixAccess
        Returns:
        the matrix
      • getSimplsW

        public weka.core.matrix.Matrix getSimplsW()
        Returns the SIMPLS W matrix.
        Specified by:
        getSimplsW in interface PLSMatrixAccess
        Returns:
        the matrix
      • getSimplsB

        public weka.core.matrix.Matrix getSimplsB()
        Returns the SIMPLS B matrix.
        Specified by:
        getSimplsB in interface PLSMatrixAccess
        Returns:
        the matrix
      • getRevision

        public String getRevision()
        Returns the revision string.
        Specified by:
        getRevision in interface weka.core.RevisionHandler
        Overrides:
        getRevision in class PLSClassifierWeighted
        Returns:
        the revision
      • main

        public static void main​(String[] args)
        Main method for running this classifier from commandline.
        Parameters:
        args - the options