This project implements linear regression using gradient descent from scratch and visualizes the learning process through animation.
The animation shows how the regression line evolves to fit the data points while minimizing the loss function.
Change the file_path
, learning_rate
, epochs
, x_key
, and y_key
parameters in the main.py
file to your desired values.
python main.py
- Python 3.x
- pandas
- matplotlib
- numpy
- ffmpeg (for saving animations)