Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Linear Regression

This is the code for 'Linear Regression - Giving Best Fit Line' post by Piyush Malhotra on


This is the code for this blog post by Piyush Malhotra.I'm using a small dataset of student test scores and the amount of hours they studied. Intuitively, we can think of a relationship between them. Like, the more you study the more you score. Method used here is Linear Regression using Gradient Descent.


-numpy Python 2 or 3 both work just fine. Use pip to install the dependencies.


Run to see the result.

You can’t perform that action at this time.