Back to API
API Documentation

pls

Category: Statistical Models

Classes

PLS

Methods

init()
fit(x, y, n_comp, dot)

Fit PLS model

Parameters
  • x: np.ndarray Variable matrix with size n by p, where n number of samples/instances, p number of variables
  • y: np.ndarray Dependent variable with size n by 1
  • n_comp: int Number of components. Default is None, which indicates that smaller number between n and p will be used.
predict(X, n_component)

Do prediction.

scores_x()

Scores.

loadings_x()
weights_y()