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 'gpa', 'gre marks', 'college rank' and 'admit to student'. Intuitively, we can think of a relationship between them, like admit provided to student by college being dependent on first three. Method used here is Gradient Descent.
-NumPy - Numerical Manipulation Library for Python
-Pandas - for data extraction
Python 2 or 3 both work just fine.
Use pip to install the dependencies.
Run logistic_regression.py to see the result.