sklears-model-selection
Latest release:
0.1.0-beta.1(January 1, 2026). See the workspace release notes for highlights and upgrade guidance.
Overview
sklears-model-selection implements the full suite of scikit-learn model selection utilities—grid search, random search, halving strategies, cross-validation splits, and scoring helpers—optimized for Rust performance and concurrency.
Key Features
- Search Strategies:
GridSearchCV,RandomizedSearchCV,HalvingGridSearch,HalvingRandomSearch, Bayesian/Adaptive search prototypes. - Cross-Validation: K-fold, stratified, grouped, time-series splits, repeated strategies, and custom splitter APIs.
- Scoring & Metrics:
make_scorer, scorer registry, multi-metric evaluation, and custom scorer plugins. - Parallel Execution: Rayon-powered evaluators with cancellation hooks and result caching.
Quick Start
use ;
use LogisticRegression;
let estimator = builder
.max_iter
.multi_class
.build;
let param_grid = builder
.add
.add
.build;
let grid_search = builder
.estimator
.param_grid
.cv
.n_jobs
.scoring
.build;
let fitted = grid_search.fit?;
let best_params = fitted.best_params;
Status
- Validated by the 11,292 passing workspace tests bundled with
0.1.0-beta.1. - Supports >99% of scikit-learn’s model selection API (including paired scoring functions and CV splitters).
- Upcoming improvements (asynchronous evaluators, distributed tuning) documented in
TODO.md.