This is the code for 'Linear Regression - Giving Best Fit Line' post by Piyush Malhotra on codeflaunt.wordpress.com
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 gradientDescent.py to see the result.