A Rust crate providing efficient implementations of common machine learning algorithms with support for dense and sparse data.
rustlearn is a machine learning crate for Rust that implements common algorithms like logistic regression, support vector machines, decision trees, random forests, and factorization machines. It solves the need for performant, native ML tools in Rust, offering competitive accuracy and speed compared to Python libraries. The crate supports both dense and sparse data, cross-validation, and parallel computation.
Rust developers and data scientists who need efficient machine learning implementations within Rust applications, particularly those requiring integration with Rust systems or performance-sensitive deployments.
Developers choose rustlearn for its native Rust performance, comprehensive algorithm coverage, and seamless handling of sparse and dense data. Its API is designed to be straightforward while providing competitive accuracy with scikit-learn, making it a robust choice for ML in Rust ecosystems.
Machine learning crate for Rust
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements common ML algorithms like logistic regression and decision trees with performance competitive to Python's scikit-learn, as stated in the README.
Supports both dense and sparse data matrices, allowing flexibility in handling various dataset types, as highlighted in the features section.
Enables parallel model fitting and prediction for faster computation, improving performance on multi-core systems.
Facilitates easy saving and loading of trained models using serde, aiding in model persistence and deployment, as shown in the examples.
Uses its own basic dense and sparse array types instead of established libraries, which the README admits is temporary and may limit interoperability with other Rust crates.
Lacks advanced methods like clustering or neural networks compared to comprehensive libraries such as scikit-learn, restricting use cases.
Relies on libsvm for SVMs, adding external dependencies that can complicate setup and maintenance, as noted in the features.
rustlearn is an open-source alternative to the following products: