Siilats Robots
Regression and perceptron lessons

Perceptron in Excel: Compute Prediction Error and Update a Weight

Work through an online perceptron example in Excel. Compare the predicted label with the target, compute the classification error, update the weight, and run another pass to see whether the same examples are classified correctly.

Watch on Siilats RobotsRegression and perceptron workbook

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

At 0:40 in the original

Build the prediction column

Calculate the current score from the feature and weight, then apply the decision threshold in a separate cell.

Screen recording at 0:40
Screen at 0:40
At 4:20 in the original

Find prediction errors

Use the difference between expected and predicted classes to flag rows for an update. Keep the label encoding consistent with the update formula.

Screen recording at 4:20
Screen at 4:20
At 7:40 in the original

Update a weight

On a mistake, move the weight in the direction of the labeled example. Freeze the learning-rate reference when copying the formula.

Screen recording at 7:40
Screen at 7:40