| Crates.io | sklears-mixture |
| lib.rs | sklears-mixture |
| version | 0.1.0-beta.1 |
| created_at | 2025-10-13 17:13:07.211786+00 |
| updated_at | 2026-01-01 21:44:39.866092+00 |
| description | Gaussian mixture models |
| homepage | https://github.com/cool-japan/sklears |
| repository | https://github.com/cool-japan/sklears |
| max_upload_size | |
| id | 1880820 |
| size | 1,078,769 |
Latest release:
0.1.0-beta.1(January 1, 2026). See the workspace release notes for highlights and upgrade guidance.
sklears-mixture implements Gaussian Mixture Models, Bayesian mixtures, Dirichlet process mixtures, and clustering utilities consistent with scikit-learn’s mixture module.
use sklears_mixture::GaussianMixture;
use scirs2_core::ndarray::Array2;
let x: Array2<f64> = // load or generate data
Array2::zeros((1000, 5));
let gmm = GaussianMixture::builder()
.n_components(4)
.covariance_type("full")
.max_iter(200)
.tol(1e-3)
.random_state(Some(42))
.build();
let fitted = gmm.fit(&x)?;
let labels = fitted.predict(&x)?;
0.1.0-beta.1.TODO.md.