Labs · Neural Networks

The Perceptron

The Perceptron simulation

The perceptron (Rosenblatt, 1958) is the simplest neural network: one neuron. It multiplies each input by a weight, adds them up together with a bias, and outputs the sign of the sum.

Training is supervised learning. For each point, error = target − guess, then weight += error × input × learning rate. Mistakes nudge the weights, and the orange learned line rotates until it matches the hidden dashed line.

A single perceptron can only learn problems that a straight line can separate. See the next demo for what multiple layers add.

Click "New line" while it's training. Click the canvas to add points.

Controls

Evolved into Neural Network Curve Fitting, Teach a Network Your Drawings.