Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.12 KB

File metadata and controls

25 lines (15 loc) · 1.12 KB

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