Class KernelPLS

    • Field Detail

      • m_Kernel

        protected com.github.waikatodatamining.matrix.transformation.kernel.AbstractKernel m_Kernel
        the kernel to use.
      • m_Tol

        protected double m_Tol
        Inner NIPALS loop improvement tolerance
      • m_MaxIter

        protected int m_MaxIter
        Inner NIPALS loop maximum number of iterations
      • m_KernelPLS

        protected com.github.waikatodatamining.matrix.algorithm.pls.KernelPLS m_KernelPLS
        the actual algorithm.
    • Constructor Detail

      • KernelPLS

        public KernelPLS()
    • Method Detail

      • setKernel

        public void setKernel​(com.github.waikatodatamining.matrix.transformation.kernel.AbstractKernel value)
        Sets the kernel to use.
        Parameters:
        value - the kernel
      • getKernel

        public com.github.waikatodatamining.matrix.transformation.kernel.AbstractKernel getKernel()
        Sets the kernel to use.
        Returns:
        the kernel
      • kernelipText

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

        public void setTol​(double value)
        Sets the inner NIPALS loop maximum number of iterations.
        Parameters:
        value - the iterations
      • getTol

        public double getTol()
        Sets the inner NIPALS loop maximum number of iterations.
        Returns:
        the iterations
      • tolipText

        public String tolipText()
        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 improvement tolerance.
        Parameters:
        value - the tolerance
      • getMaxIter

        public int getMaxIter()
        Sets the inner NIPALS loop improvement tolerance.
        Returns:
        the tolerance
      • maxIteripText

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