/ft_linear_regression

A linear regression implementation

Primary LanguageRust

ft_linear_regression

A linear regression implementation, written in Rust
This is a 42 school project [Final grade: 125%]


Demo


Setup

If you do not have Rust

> curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
> export PATH=$PATH:$HOME/.cargo/bin

Then you can build the project

> cargo build --release

Learn usage

> ./target/release/learn <file> [OPTIONS]

Flags

-h, --help       Prints help information
-V, --version    Prints version information

Options

-a, --algo <algo>    Algo selection, choose from 'ols' or 'gradient'

Predict usage

> ./target/release/predict output/save.txt

Contributors


Simon Galasso