Qu

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.

CodeInputOutputDescription
pls_model(X, Y, k)
X vector or matrixnot documented yet
Y vector or matrixnot documented yet
k vector or matrixnot documented yet
not documented yetScale 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.