You are viewing the documentation for metbit 1.0.6. Change release context
metbit.base
Other module in metbit 1.0.6.
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