ml-pls
    Preparing search index...

    Class KOPLS

    KOPLS

    Index

    Constructors

    • Constructor for Kernel-based Orthogonal Projections to Latent Structures (K-OPLS)

      Parameters

      • options: {
            kernel?: object;
            orthogonalComponents?: number;
            predictiveComponents?: number;
        }

        constructor options.

        • Optionalkernel?: object

          Kernel object to apply, see ml-kernel.

        • OptionalorthogonalComponents?: number

          Number of Y-Orthogonal components.

        • OptionalpredictiveComponents?: number

          Number of predictive components to use.

      • model: object

        for load purposes.

      Returns KOPLS

    Properties

    kernel: any
    kernelX: any[] | undefined
    orthogonalComp: any
    predictiveComp: any
    predScoreMat: any[] | undefined
    SigmaPow: Matrix | undefined
    toNorm: any[] | undefined
    trainingSet: Matrix | undefined
    TURegressionCoeff: any[] | undefined
    YLoadingMat: Matrix | undefined
    YOrthEigen: any
    YOrthLoadingVec: any[] | undefined
    YOrthScoreMat: any[] | undefined
    YScoreMat: Matrix | undefined

    Methods

    • Predicts the output given the matrix to predict.

      Parameters

      • toPredict: any[] | Matrix

        matrix of features to predict.

      Returns { predScoreMat: Matrix[]; predYOrthVectors: Matrix[]; y: Matrix }

      predictions

    • Export the current model to JSON.

      Returns object

      • Current model.
    • Train the K-OPLS model with the given training set and labels.

      Parameters

      • trainingSet: any[] | Matrix

        matrix of features.

      • trainingValues: any[] | Matrix

        matrix of labels.

      Returns void

    • Load a K-OPLS with the given model.

      Parameters

      • model: object

        the serialized model to load.

      • kernel: object

        kernel used on the model, see ml-kernel.

      Returns KOPLS

      the loaded K-OPLS model.