pls_model
Builtin index · Statistics & ML
pls_model(X, Y, k)
Input: X, Y, k · Output: no output
What it is
Partial least squares regression (PLS2, NIPALS) with k components on centered X (N x D) and Y (a length-N vector or an N x Q matrix). Scale columns first (scaler_model) if they are in different units. .predict(Xnew) returns fitted Y (a vector when Y was one); .transform(Xnew) returns the k X-scores. With k = D it reproduces ordinary least squares. Fields: coef, x_weights, x_loadings, y_loadings, x_rotations. Added in v0.4.3.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
pls_model(X, Y, k) | X vector or matrixnot documented yetY vector or matrixnot documented yetk vector or matrixnot documented yet | not documented yet | Scale columns first (scaler_model) if they are in different units. Fields: coef, x_weights, x_loadings, y_loadings, x_rotations. Added in v0.4.3. |
Examples
No documentation example calls this form yet. The Statistics & ML chapter is where one belongs.