rust-automl

Library Listed

Automated machine learning for classification and regression

Checked · Sources

Downloads
170
Dependents
1
Stars
39
Forks
6
Contributors
2
Commits
363
Latest release
0.3.1 ·

About

From the project README ·

automl with smartcore

Train, compare, and predict with machine-learning models in Rust, using SmartCore estimators and configurable preprocessing.

Install

automl = "0.3.1"

Quickstart

Compare classifiers with cross-validation, inspect their scores, and predict with the best model:

use automl::{ClassificationModel, ClassificationSettings, DenseMatrix};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let rows: Vec<Vec<f64>> = (0..24).map(|i| vec![f64::from(i)]).collect();
    let features = DenseMatrix::from_2d_vec(&rows)?;
    let labels: Vec<u32> = (0..24).map(|i| u32::from(i >= 12)).collect();
    let settings = ClassificationSettings::default().with_number_of_folds(3);
    let mut classifier = ClassificationModel::new(features, labels, settings);
    classifier.train()?;

    println!("{classifier}");
    let predictions = classifier.predict(DenseMatrix::from_2d_array(&[&[2.0], &[20.0]])?)?;
    println!("Predictions: {predictions:?}");
    Ok(())
}

A successful train() replaces the previous results. A failed retraining attempt preserves the last successful model and fitted preprocessing; settings edits are retained so you can correct them and retry.

Read the full README

Models and preprocessing

  • Regression: linear, ridge, lasso, elastic net, decision trees, random forests, extra trees, KNN, support vector regression, and XGBoost.
  • Classification: decision trees, random forests, logistic regression, KNN, support vector classifiers, and naive Bayes variants.
  • Clustering: K-means, DBSCAN, and agglomerative clustering.
  • Preprocessing: scaling, imputation, categorical encoding, power transforms, column selection, PCA/SVD, interactions, and polynomial features.

Configure algorithms and pipelines through settings. Fitted preprocessing is reused for inference. See the cookbook for pipeline recipes and complete workflows.

Examples and CSV input

cargo run --example breast_cancer_csv
cargo run --example diabetes_regression

CSV loading is available without feature flags through load_csv_features and load_labeled_csv.

API documentation · Changelog

Runs on
GPU support unknown
What shows it
  • no dependency or feature matches a backend row
Native code
None found
  • No native code found
Python bindings
No Python binding crate found
License
Apache-2.0 OR MIT

Compare with similar projects

Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.

rust-automl beside the projects that share a topic with it
ProjectDownloadsDependentsStarsLatest releaseRuns on (GPU)Native codeLicense
rust-automl This page Listed

Automated machine learning for classification and regression

170 downloads over 30 days 1 39 0.3.1 GPU support unknown No native code found Apache-2.0 OR MIT
linfa Featured

A Machine Learning framework for Rust

177,963 downloads over 30 days 60 4,770 0.8.1 GPU support unknown Binds native code: lapack-sys (feature intel-mkl-static) Apache-2.0 OR MIT
smartcore Featured

Machine Learning in Rust.

39,473 downloads over 30 days 33 976 0.7.0 GPU support unknown No native code found Apache-2.0

A robust statistics library for regression analysis

8,310 downloads over 30 days 6 8 0.12.2 GPU support unknown No native code found MIT
augurs Listed

A time-series toolkit for forecasting, outlier detection, clustering and more.

7,507 downloads over 30 days 8 580 0.10.3 GPU support unknown No native code found Apache-2.0 OR MIT
rustlearn Listed Dormant

A machine learning package for Rust.

578 downloads over 30 days 2 647 0.5.0 GPU support unknown Binds native code: libsvm Apache-2.0
treeboost Listed

Gradient-boosted decision trees for tabular data: trains a baseline model in one call, with full control over boosting modes and configs, and Scalar, AVX-512, SVE2, WGPU and CUDA backends.

Python bindings

18 downloads over 30 days 0 9 0.1.2 CUDA, WebGPU No native code found Apache-2.0
Why ListedNo archive, New or Featured rule places it, so it is Listed.

What it lacks for Featured

  • It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 39 stars, 6 forks and 2 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.

What else the check found

  • The last activity is on 19 Sep 2026, 51 days ago. The rules expect an update within 365 days. Dormancy rule

Exact rules: Listed, Featured library. The check on applied thresholds version 9.

Every rule outcome, as the check records it
  • expected-interval: version 0.3.1 base 300, raised to the 365-day floor: E = 365 days
  • dormancy: last activity 2026-09-19, 51 days ago, E = 365: active
  • featured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 39 (needs 4539), forks 6 (needs 434), contributors 2 (needs 79)
  • listed: listed: no archive, new or featured rule applies

Measurements and sources

Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.

Sources6 sources
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
Adoption measurements
SignalValueSourceFetchedCounts
Active dependents0crates.io database dumpYes
New dependents (365 days)0crates.io database dumpYes
Peak active dependents1crates.io database dumpYes
Active dependents as a share of the peak1crates.io database dumpYes
Binary downloads per releaseNot measuredYes
MaintenanceLatest human commit: 51 days ago3 not measured
Maintenance measurements
SignalValueSourceFetchedCounts
Latest human commit2026-09-19GitHub repositoryYes
Latest release2026-09-19crates.io database dumpYes
First release2021-11-12crates.io database dumpYes
Latest version0.3.1crates.io database dumpYes
Days the oldest outside issue waits for a reply0GitHub repositoryYes
Maintainer replies over 365 days1GitHub repositoryYes
Repository archivedfalseGitHub repositoryYes
Repository gonefalseGitHub repositoryYes
Release commit or manifest in the repotruecrates.io packageYes
Published docstruecrates.io database dumpYes
Latest release fails cargo checkNot measuredYes
Build check dateNot measuredYes
Build check toolchainNot measuredYes
SecurityUnpatched vulnerabilities: none
Security measurements
SignalValueSourceFetchedCounts
Unpatched vulnerabilities past the grace windownoneRustSec advisory databaseYes
RustSec unmaintained advisorynoneRustSec advisory databaseYes
Deprecation noticenonecrates.io database dumpYes
Deprecated requirementnonecrates.io database dumpYes
Distribution13 releases, 170 downloads over 30 days5 not measured
Distribution measurements
SignalValueSourceFetchedCounts
Releases13crates.io database dumpYes
Downloads over 30 days170crates.io database dumpYes
Binary downloads over the last 3 releasesNot measuredYes
Homebrew installs on request over 365 daysNot measuredYes
Repology repository familiesNot measuredYes
Docker pull growth over 90 daysNot measuredYes
Docker pulls at the growth baselineNot measuredYes
Every version a prereleasefalsecrates.io database dumpYes
Every version 0.0.xfalsecrates.io database dumpYes
Every version yankedfalsecrates.io database dumpYes
Crate deleted from crates.iofalsecrates.io database dumpYes
Repository39 stars, 6 forks, 2 contributors, 363 commits. Stars alone never qualify a project.
Repository measurements
SignalValueSourceFetchedCounts
GitHub stars39GitHub repositoryYes — one part of the repository route
GitHub forks6GitHub repositoryYes — one part of the repository route
Contributors with a GitHub account2GitHub contributorsYes — one part of the repository route
Commits on the default branch363GitHub repositoryNo
Repository's main crate left out of the entrynonecrates.io database dumpYes
Facts that never count
Facts that never count measurements
SignalValueSourceFetchedCounts
LicenseApache-2.0 OR MITcrates.io database dumpNo
Runs on, from listed crates and their direct dependenciesGPU support unknowncrates.io database dumpNo
What shows each backendno dependency or feature matches a backend rowcrates.io database dumpNo
Native code, from listed crates and their dependenciesNo native code foundcrates.io database dumpNo
Python bindings, from direct dependencies of listed cratesNo Python binding crate foundcrates.io database dumpNo
Crates that depend on a listed crate directly1crates.io database dumpNo

Corrections and review history

Report a correction

No correction applies to this entry.

Judgments

A judgment enters only through an approved issue and a merged pull request.

No judgment applies to this entry.