Class PRM

    • Field Detail

      • m_PRM

        protected com.github.waikatodatamining.matrix.algorithm.pls.PRM m_PRM
        the actual algorithm.
      • m_Tol

        protected double m_Tol
        Inner loop improvement tolerance
      • m_MaxIter

        protected int m_MaxIter
        Inner loop maximum number of iterations
      • m_NumSimplsCoefficients

        protected int m_NumSimplsCoefficients
        the number of SIMPLS coefficients.
      • m_C

        protected double m_C
        Tuning parameter.
    • Constructor Detail

      • PRM

        public PRM()
    • Method Detail

      • setTol

        public void setTol​(double value)
        Sets the inner NIPALS loop improvement tolerance.
        Parameters:
        value - the tolerance
      • getTol

        public double getTol()
        Returns the inner NIPALS loop improvement tolerance.
        Returns:
        the tolerance
      • tolTipText

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

        public void setMaxIter​(int value)
        Sets the inner NIPALS loop maximum number of iterations.
        Parameters:
        value - the maximum
      • getMaxIter

        public int getMaxIter()
        Returns the NIPALS loop maximum number of iterations.
        Returns:
        the maximum
      • maxIterTipText

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

        public void setNumSimplsCoefficients​(int value)
        Sets the number of SIMPLS coefficients to keep. <= to keep all.
        Parameters:
        value - the coefficients
      • getNumSimplsCoefficients

        public int getNumSimplsCoefficients()
        Returns the number of SIMPLS coefficients to keep. <= to keep all.
        Returns:
        the coefficients
      • numSimplsCoefficientsTipText

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

        public void setC​(double value)
        Tuning parameter.
        Parameters:
        value - the C, > 0
      • getC

        public double getC()
        Returns the tuning parameter.
        Returns:
        the C, > 0
      • CTipText

        public String CTipText()
        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
      • 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