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)
      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'):
      Turns on output of debugging information.
     -C <num>
      The number of components to compute.
      (default: 20)
      Updates the class attribute as well.
      (default: off)
      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)
    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
        globalInfo in class PLSClassifierWeighted
        a description suitable for displaying in the explorer/experimenter gui
      • getDefaultFilter

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

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

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

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

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

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

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

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

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