An IPython notebook showing the basics of implementing gradient descent and stochastic gradient descent in Python