Perceptron on Ancient Brain
A demo of a Perceptron
finding a line to separate two groups of points.
Click to run World:
Perceptron at
Ancient Brain.
- Credits:
- Port of Perceptron from here
from "The Nature of Code"
(by the "Coding Train").
- See videos parts
one and
two.
- On each run, there is a set of points that is linearly separable.
- We achieve this by defining a random (blue) line on each run.
Points above the line (green) are one class (output should be 1).
Points below the line (pink) are another class (output should be -1).
- Starts with random perceptron, i.e. random (white) line.
- Perceptron learns by getting output wrong to change until all outputs are right.
- It cycles through the same set of points repeatedly
until it classifies them.
- On each cycle it draws the same set of points in the same order.