You are viewing the documentation for metbit 6.0.1. Change release context
metbit.base
Other module in metbit 6.0.1.
import metbit.baseFunctions
nipals(x: np.ndarray, y: np.ndarray, tol: float=1e-10, max_iter: int=1000, dot=np.dot)
Non-linear Iterative Partial Least Squares
Parameters
xnp.ndarrayVariable matrix with size n by p, where n number of samples, p number of variables.
ynp.ndarrayDependent variable with size n by 1.
tolfloatTolerance for the convergence.
max_iterintMaximal number of iterations.
Returns
wnp.ndarrayWeights with size p by 1.
unp.ndarrayY-scores with size n by 1.
cfloatY-weight
tnp.ndarrayScores with size n by 1
References
[1] Wold S, et al. PLS-regression: a basic tool of chemometrics. Chemometr Intell Lab Sys 2001, 58, 109–130. [2] Bylesjo M, et al. Model Based Preprocessing and Background
EliminationOSC, OPLS, and O2PLS. in Comprehensive Chemometrics.