| Crates.io | rs-ml |
| lib.rs | rs-ml |
| version | 0.3.2 |
| created_at | 2025-02-10 05:20:14.272824+00 |
| updated_at | 2025-07-04 01:32:49.191837+00 |
| description | Simple ML crate including Gaussian Naive Bayesian classifier |
| homepage | |
| repository | https://github.com/coenvalk/rs-ml |
| max_upload_size | |
| id | 1549592 |
| size | 92,767 |
ML framework for the rust programming language. It includes traits for transfomers, models, and an implementation for scalers, and a gaussian Naive Bayesian classifier.
This library requires a compute backend to perform matrix operations. Compute backends are exposed with provided feature flags. Refer to the ndarray_linalg docs for more information.
let a = csv::read_csv("filename.csv")?;
let features = Dataset::from_struct(a, |r| arr1[r.f1, r.f2, r.f3], |r| r.label)?;
let model = GaussianNB::fit(features)?;