Skip to content

Linear regression implementation - ML project at Ecole 42

Notifications You must be signed in to change notification settings

gerus66/linear_regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear regression

Task

full version in pdf
wiki about linear regression

Run

for ex: ./training.py && ./prediction.py -v 100000 -d data/data.csv

Utils

./training.py [-h] [-d datafile] [-i iterations] [-lr learning rate] [-s storage]

This one trains linear model on datafile, saves coefficients to storage and demonstrates error decreasing through iterations (it also depends on learning rate though).

Alt text

Alt text

./prediction.py [-h] -v value [-d datafile] [-s storage] \

This one predicts result for value, based on coefficients from storage, and with given datafile plots it all together with data.

Alt text

Alt text

About

Linear regression implementation - ML project at Ecole 42

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages