Programming Exercise 1: Linear Regression
I started working on the Machine Learning course by Andrew Ng. The following blog post contains exercise solution for linear regression using gradient descent algorithm. Also, this blog post is available as a jupyter notebook on GitHub.
This exercise was done using Numpy library functions. I also used scikit-learn library to demonstrate another way of linear regression plotting.
# Standard imports. Importing seaborn for styling. %matplotlib inline import numpy as np import matplotlib.pyplot as plt import seaborn; seaborn.set_style("whitegrid")