This repository contains a simple implementation of linear regression to predict car prices based on mileage.
First, make sure you have Python installed on your system. Then, install the required dependencies using pip:
pip install -r requirements.txt
To train the linear regression model and save the theta parameters, run:
python trainer.py
You can use the --verbose flag to enable a visual animated scatter plot that shows the internal workings of the model during training:
python trainer.py --verbose
After training the model and saving the theta parameters, you can use the predict.py script to predict a car price based on mileage:
python predict.py
This project is licensed under the MIT License.