Skip to content

perceptron

learning

Level 2 of 3

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

To split triangles from squares with a line, check the points one by one and nudge the line whenever a point is not on its own side, pass after pass until a whole pass nudges nothing.

the points, the line and its two sides

nudges in each pass

points checked
0
nudges
0

step 1 of 1

Examples

Points as two whole numbers from 0 to 10 and a letter for the class (t triangle, s square), 3 to 12 of them with at least one of each, then a semicolon and a step size from 0.1 to 1. For example: 2 7 t, 3 9 t, 6 2 s, 8 4 s; 0.5