Python representation of a Perceptron. Perceptrons are machine learning algorithms which classify objects based upon their location in a plane. The Perceptron generates a line and classifies objects on one side of this line as separate to those on the other.
If you want to read up on them then click here: [x]
(I have tried to make my comments a little clearer in this one as opposed to the Naiive Bayes classifier. Hope you enjoy!)