Skip to content

perceptron

learning

Level 2 of 3

Also called the perceptron learning rule and Rosenblatt's perceptron.

fresh numbers

The test's questions that a run answers, asked again on new numbers whenever you like. The answer, its working and the reason for every other choice come from perceptron's own run on the numbers shown.

choose one

question 1

Points 5 4 s, 0 2 s, 8 6 s, 0 5 t and 8 8 t, at step size 0.3. Only the square at 5 4 ever nudges the line, in pass 1. How many checks does the run make?

02468100246810123456
the answer, and why

the answer is C

Pass 1 nudges, so pass 2 checks every point again. It nudges nothing, and the run stops. Two passes of 5 checks make 10.

if you chose another

  • That is pass 1 alone. It nudged, so one more pass must check the new line.
  • That is all six passes. The run stops at the first pass that nudges nothing, pass 2.
  • That is how many nudges were made, not how many checks.

new numbersthe test page's numbers

question 2

Three points, 5 6 t, 6 0 t and 4 9 s, at step size 0.1. How many nudges does the run make?

02468100246810123456
the answer, and why

the answer is A

The triangle at 5 6 stands no steps right of the middle, so it scores 0 under the starting line. A score of 0 is on the line, on neither side, so it nudges. The line becomes 1, 0.1 and 0.1, which has all three points on their own sides. Pass 2 nudges nothing.

if you chose another

  • Only one triangle stands right of the line. The one at 5 6 stands on it, and a point on the line counts as wrong.
  • After the first nudge the triangle at 6 0 scores 0.6 and the square at 4 9 scores minus 0.5, both on their own sides.
  • Only the point on the line is wrong. The other two score 1 and minus 1 at the start, each on its own side.

new numbersthe test page's numbers