Machine learning crate for Rust
A machine learning package for Rust.
For full usage details, see the API documentation.
This crate contains reasonably effective implementations of a number of common machine learning algorithms.
At the moment, rustlearn uses its own basic dense and sparse array types, but I will be happy
to use something more robust once a clear winner in that space emerges.
libsvm library,All the models support fitting and prediction on both dense and sparse data, and the implementations
should be roughly competitive with Python sklearn implementations, both in accuracy and performance.
A number of models support both parallel model fitting and prediction.
Model serialization is supported via serde.
rustlearnUsage should be straightforward.
use rustlearn::prelude::*;use rustlearn::prelude::*;
use rustlearn::linear_models::sgdclassifier::Hyperparameters;
// more imports……Pull requests are welcome.
To run basic tests, run cargo test.
Running cargo test --features "all_tests" --release runs all tests, including generated and slow tests.
Running cargo bench --features bench (only on the nightly branch) runs benchmarks.
No open issues yet, or sync has not completed.