sklears-mixture
Latest release:
0.1.0-beta.1(January 1, 2026). See the workspace release notes for highlights and upgrade guidance.
Overview
sklears-mixture implements Gaussian Mixture Models, Bayesian mixtures, Dirichlet process mixtures, and clustering utilities consistent with scikit-learn’s mixture module.
Key Features
- Algorithms: GaussianMixture, BayesianGaussianMixture, DirichletProcessGaussianMixture, and spherical/covariance options.
- Inference: Expectation-Maximization, variational inference, and online updates for streaming data.
- Accelerated Kernels: SIMD and GPU-accelerated responsibilities, log-likelihood evaluation, and sampling.
- Integration: Compatible with preprocessing, model selection, and inspection crates for pipeline workflows.
Quick Start
use GaussianMixture;
use Array2;
let x: = // load or generate data
zeros;
let gmm = builder
.n_components
.covariance_type
.max_iter
.tol
.random_state
.build;
let fitted = gmm.fit?;
let labels = fitted.predict?;
Status
- Fully covered by the 11,292 passing workspace tests for
0.1.0-beta.1. - Achieves 5–15× speedups over scikit-learn on medium-sized datasets.
- Planned features (GPU variational inference, streaming DPGMM) tracked in
TODO.md.