A perceptron is a binary classification unit using an affine score and a threshold to predict a label. The perceptron algorithm updates that score online. Absorb the bias into an augmented constant input, use labels , and start at . Whenever , including a tie, updateFor a finite linearly separable dataset, suppose a unit vector satisfies and . After updates, , while expanding the squared norm at each update gives . The Cauchy-Schwarz inequality yields , hence . Cycling through the dataset therefore finds a separator after finitely many updates.
The assumption matters: nonseparable data can keep generating updates. The method finds a separating hyperplane when the assumptions hold, rather than necessarily maximizing its margin as a support vector machine aims to do. A single perceptron also differs from a multilayer perceptron, whose hidden activation functions can represent nonlinear decision regions.
New to topics? Read the docs here!