The perceptron trick makes a small, point-by-point improvement to a classifier. Leave the boundary line unchanged for a correctly classified point; for a misclassified point, move it slightly toward that point. section 5.3
Use the trick within the perceptron training loop:
- Start with a random classifier, then select a point. Keep the classifier as it is if the point is correctly classified; otherwise, move it slightly toward the point. section 5.3
- Repeat the improvement step many times, then use perceptron error to decide when to stop. section 5.3
Try an update
For the model ŷ = step(2x₁ + 3x₂ − 4), examine the point (1, 1) with label 0. Check its prediction and error, then use the trick with learning rate 0.01 to find a new model with smaller error. section 5.7
Figure 5.20 Case 1 (left): A point that is correctly classified tells the line to stay where it is. Case 2 (right): A point that is misclassified tells the line to move closer toward it.
Compare the two cases: a correctly classified point leaves the line in place, while a misclassified point moves it closer. section 5.3
