/
You are viewing the documentation for metbit 1.6.0. Change release context

metbit.pls

Analysis and models module in metbit 1.6.0.

import metbit.pls

Classes

PLS

Methods

__init__(self)
fit(self, x: np.ndarray, y: np.ndarray, n_comp: int=None, dot=np.dot)

Fit PLS model

Parameters

xnp.ndarray

Variable matrix with size n by p, where n number of samples/instances, p number of variables

ynp.ndarray

Dependent variable with size n by 1

n_compint

Number of components. Default is None, which indicates that smaller number between n and p will be used.

Returns

PLS object

predict(self, X, n_component=None)

Do prediction.

scores_x(self)

Scores.

Returns

np.ndarray Scores

loadings_x(self)

Returns

np.ndarray loadings

weights_y(self)

Returns

np.ndarray y scores

Source

metbit/pls.py at v1.6.0
Downloads for metbit 1.6.0PyPI and GitHub measure different distribution channels. Statistics refresh daily.

Counts are distribution activity, not unique users. GitHub source archives and Git clones are not included. Sources: PyPI Stats, Pepy, ClickPy, and GitHub Releases.

metbit 1.6.0 documentation