An IPython notebook with an implementation of the linear perceptron algorithm.