21 School project about linear regression
The goal of the project is to introduce students to linear regression. In this project we have to files: train.py
and predict.py
.
The task is to get coefficients of linear function by training on data.csv
. In data.csv
we have car's prices and mileage. When the model is trained, we should to test it, and make a prediction by runnint predict.py
.
To install all dependecies
>./start.sh
To activate virtual envirnment
>source .venv/bin/activate
To set train configurations configure configurations/train_configurations.json
To set pridict configurations configure configurations/predict_configurations.json
To start train use
>./train.py
- Results
- Error dependens
- Determination dependens
To predict price run
>./predict.py <km>
where km is an integer
- Results
The reason why I set learning rate 0.9 you cat see on the next imagies
>./statistics.py