linfa-linear aims to provide pure Rust implementations of popular linear regression algorithms.
linfa-linear is a crate in the
linfa ecosystem, an effort to create a toolkit for classical Machine Learning
implemented in pure Rust, akin to Python’s
linfa-linear currently provides an implementation of the following regression algorithms:
- Ordinary Least Squares
- Generalized Linear Models (GLM)
There is an usage example in the
examples/ directory. To run, use:
$ cargo run --features openblas --example diabetes $ cargo run --example glm
A fitted linear regression model which can be used for making predictions.
An ordinary least squares linear regression model.
Fitted Tweedie regressor model for scoring