Class OPLS

    • Field Detail

      • m_Base

        protected com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS m_Base
        the base PLS algorithm.
      • m_OPLS

        protected com.github.waikatodatamining.matrix.algorithm.pls.OPLS m_OPLS
        the actual algorithm.
    • Constructor Detail

      • OPLS

        public OPLS()
    • Method Detail

      • setBase

        public void setBase​(com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS value)
        Sets the base PLS algorithm to use.
        Parameters:
        value - the base algorithm
      • getBase

        public com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS getBase()
        Sets the base PLS algorithm to use.
        Returns:
        the base algorithm
      • baseTipText

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

        public weka.core.matrix.Matrix getMatrix​(String name)
        Returns the matrix with the specified name.
        Specified by:
        getMatrix in interface GenericPLSMatrixAccess
        Specified by:
        getMatrix in class AbstractPLS
        Parameters:
        name - the name of the matrix
        Returns:
        the matrix, null if not available
      • determineOutputFormat

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

        protected weka.core.Instances doTransform​(weka.core.Instances data,
                                                  Map<String,​Object> params)
                                           throws Exception
        Transforms the data, initializes if necessary.
        Specified by:
        doTransform in class AbstractPLS
        Parameters:
        data - the data to use
        params - additional parameters
        Returns:
        the transformed data
        Throws:
        Exception