Siilats Robots
Regression and perceptron lessons

Perceptron in Excel: Debug the Update and Finish Training

Finish the perceptron spreadsheet by comparing the update with gradient descent, checking the direction of the weight change, and repeating passes over the misclassified examples. The screen share ends with a discussion of when the updates stop.

Watch the original lessonRegression and perceptron workbook

Screen times follow the original lesson. Edited YouTube versions may run shorter.

At 1:27 in the original

Compare the update with gradient descent

Look at the loss or error signal and identify what triggers a coefficient change. A perceptron updates on misclassifications.

Screen recording at 0:00
Screen at 0:00
At 3:47 in the original

Check the sign

Work out a sample score, actual label, and correction on paper to verify the signs used in the formula.

Screen recording at 2:20
Screen at 2:20
At 9:39 in the original

Inspect a real weight change

On a wrong prediction, check how the active row changes the parameters. Confirm the updated values feed the next prediction.

Screen recording at 8:12
Screen at 8:12
At 11:19 in the original

Run another pass

Repeat the pass and check whether the mistake count falls. A stable zero-error pass is the natural stopping point for separable data.

Screen recording at 9:52
Screen at 9:52