sklears-cross-decomposition
Latest release:
0.1.0-beta.1(January 1, 2026). See the workspace release notes for highlights and upgrade guidance.
Overview
sklears-cross-decomposition offers Partial Least Squares (PLS) regressors/classifiers, Canonical Correlation Analysis (CCA), and related cross-decomposition utilities. The APIs mirror scikit-learn 1.5, while Rust-native optimizations deliver consistent performance gains.
Key Features
- PLS Family: PLSRegression, PLSCanonical, PLSRegressionCV, and sparse extensions.
- CCA & Variants: Dense and sparse canonical correlation, along with GPU-accelerated solvers.
- Model Selection Integration: Works seamlessly with sklears pipelines, grid search, and feature engineering crates.
- Robust Numerics: Regularization, deflation strategies, and whitening controls ensure stability on real-world datasets.
Quick Start
use PLSRegression;
use ;
let x: = array!;
let y: = array!;
let pls = builder
.n_components
.scale
.max_iter
.tol
.build;
let fitted = pls.fit?;
let y_pred = fitted.predict?;
Status
- Fully validated by the 11,292 passing workspace tests bundled with
0.1.0-beta.1. - Benchmarks show 8–20× speedups versus scikit-learn for large PLS problems.
- Upcoming enhancements (incremental fit, streaming CCA) tracked in
TODO.md.