Run the perceptron algorithm with learning rate 1, starting from and , on the points with label , with , with and with , in this order. A point counts as a mistake if . What are the weights after each update, and when does it stop?
Supervised learning, Perceptron
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can run the mistake-driven rule by hand, including the bias, and recognise when a full clean pass means convergence.
Key idea
On each mistake apply , . Training ends after one full pass with no mistakes.
Steps
- Epoch 1, point , : score , a mistake. Update , .
- Point , : score . Correct, no change.
- Point , : score , times is . Correct.
- Point , : score , times is . Mistake. Update and .
- Epoch 2 with , : scores are with labels , so all are correct.
- So it stops after two updates, with , , and decision boundary .
Common mistakes
- Forgetting to update the bias, or using the wrong sign of in the update.
- Using the strict test . A score of exactly 0, as at the start, must count as a mistake or nothing ever moves.
- Stopping after the first update. Convergence means a full pass with no mistakes.
How long your answer should be
Half a page, a small table of scores.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: For the four data points , set up and solve the normal equations for the line . What are the residual sum of squares and the unbiased noise-variance estimate ?
Next in Supervised learning: An Adaline has two weights, no bias, starting at , with learning rate and the delta rule . Apply it to the sample with target , then to with target . What are the weights after each step? For what range of is a single repeated sample stable?