Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 635 Bytes

Readme.md

File metadata and controls

27 lines (16 loc) · 635 Bytes

Linear Regression with Gradient Descent Visualization

This project implements linear regression using gradient descent from scratch and visualizes the learning process through animation.

Usage

The animation shows how the regression line evolves to fit the data points while minimizing the loss function.

linear_regression.gif

Run the script

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

Requirements

  • Python 3.x
  • pandas
  • matplotlib
  • numpy
  • ffmpeg (for saving animations)