Skip to content

kevinnadar22/Linear-Regression-From-Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Linear Regression Algorithm from scratch with Visualisation

Topics

Resources

Stars

Watchers

Forks

Languages