Perceptron
1. Rule
Online linear classifier. Predict . On mistake with true :
Only mistakes cause updates. standard.
2. Algorithm
w = 0
repeat until no mistakes (if separable):
for each (x,y): if y (w^{T}x) ≤ 0: w = w + y x
3. Convergence
If data separable with margin , perceptron stops after bounded mistakes (mistake bound scales as ). If not separable, it cycles — use averaged / voted version or stop early.
4. Limits
Learns only linear boundaries (fails XOR). No probabilities. Sensitive to order and scale → standardize, shuffle.
5. Exam Points
- Write update rule + trace 2-3 steps — 5-7 marks, very frequent.
- State convergence condition (separable) — 3 marks, frequent.
- XOR failure reason — 2 marks, frequent.