ml-pls
    Preparing search index...

    Function oplsNipals

    • Single OPLS (orthogonal projections to latent structures) NIPALS iteration. Computes the predictive and Y-orthogonal components and returns the data with the orthogonal variation filtered out.

      Parameters

      • data: any[] | Matrix

        matrix with features (X).

      • labels: any[] | Matrix

        an array of labels (dependent variable Y).

      • Optionaloptions: { limit?: number; numberOSC?: number } = {}

        an object with options.

        • Optionallimit?: number

          convergence threshold used to stop the iteration.

        • OptionalnumberOSC?: number

          maximum number of NIPALS iterations.

      Returns object

      the computed model with the following properties:

      • filteredX: X with the orthogonal component removed.
      • weightsXOrtho: Y-orthogonal weights of X.
      • loadingsXOrtho: Y-orthogonal loadings of X.
      • scoresXOrtho: Y-orthogonal scores of X.
      • weightsXPred: predictive weights of X.
      • loadingsXpred: predictive loadings of X.
      • scoresXpred: predictive scores of X.
      • loadingsY: loadings of Y.