Skip to main content

Module pls

Module pls 

Source
Expand description

Partial Least Squares regression (ISL ch 6.3.2) — PLS1 (univariate response) by the NIPALS algorithm. Unlike PCR (which picks directions of high predictor variance), PLS picks directions of high covariance with the response. The small component-space solve reuses linear_algebra::qr (no new solver). Kernel-class DenseLinear.

Structs§

PlsModel
A fitted PLS model collapsed to predictor-space coefficients + intercept.

Functions§

fit
Fit PLS1 with n_components (clamped to p). Fails closed on shape mismatch / n < 2 / a degenerate (zero-covariance) extraction.