Interactive demo · Bayesian and Probabilistic Machine Learning · Chapter 4

Least squares, Fisher's discriminant and the perceptron

A linear classifier cuts the input space with the hyperplane y(x) = wTx + w0 = 0. Least squares fits the 1-of-K targets by linear regression, which is convenient but treats the targets as Gaussian: a few far-away points tilt the boundary, and with three classes one class can be masked altogether. Fisher's discriminant chooses the direction w that makes the projected classes far apart relative to their spread, J(w) = (wTSBw) / (wTSWw). The perceptron adds tnφn to w for each misclassified point and stops after finitely many updates on separable data.

Method

Direction w, angle in degrees

Data

Fit

Scoreboard

Try these

In the lecture notes