Skip to content

a small neural network

learning

Level 3 of 3

Also called a multilayer perceptron and learning by back propagation.

Two inputs, a few hidden units and one output learn XOR, which no single straight line can split. Each pass feeds every corner forward, measures how far the outputs miss, and nudges every weight against its share of the miss.

the corners, shaded where it says square

the network, each line its weight

corners fed through
0
weights nudged
0

step 1 of 1

Examples

The hidden units, a whole number from 2 to 4; the step size, from 0.5 to 8 in halves, such as 0.5, 2 or 3.5; and the passes, a whole number from 10 to 500. For example: 3; 4; 150