1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//!
//! `linfa-linear` aims to provide pure Rust implementations of popular linear regression algorithms.
//!
//! ## The Big Picture
//!
//! `linfa-linear` is a crate in the [`linfa`](https://crates.io/crates/linfa) ecosystem, an effort to create a toolkit for classical Machine Learning
//! implemented in pure Rust, akin to Python's `scikit-learn`.
//!
//! ## Current state
//!
//! `linfa-linear` currently provides an implementation of the following regression algorithms:
//! - Ordinary Least Squares
//! - Generalized Linear Models (GLM)
//!
//! ## Examples
//!
//! There is an usage example in the `examples/` directory. To run, use:
//!
//! ```bash
//! $ cargo run --features openblas --example diabetes
//! $ cargo run --example glm
//! ```

mod error;
mod float;
mod glm;
mod ols;

pub use error::*;
pub use glm::*;
pub use ols::*;