A single neuron
The simplest possible network: 3 numbers. It can only draw a straight line between colors. Try it on the XOR preset and watch it fail.
No magic, just numbers that adjust themselves step by step until the answers are right. Below, a tiny network learns from scratch to tell two spirals apart.
The network takes a point's coordinates, multiplies them by its weights, adds them up and says how sure it is that the point is blue.
We compare the guess with the right answer. The more confident the network was in a wrong answer, the bigger the error.
The error travels backwards through the network (backpropagation), and every weight learns how much it contributed to the mistake.
Every weight moves a tiny bit in the direction that reduces the error. Repeat thousands of times and the network learns.
Read the full guide: how a neural network learns, step by step →
Everyone starts with the same untrained copy. What it learns depends only on you.
The simplest possible network: 3 numbers. It can only draw a straight line between colors. Try it on the XOR preset and watch it fail.
One hidden layer with 4 neurons, 17 numbers in total. Each neuron draws its own line, and together they can bend the border. Enough for XOR and a circle.
Two hidden layers with 8 neurons each, 105 numbers. The second layer combines the shapes of the first one, so it can learn a spiral. Learns slower, but can do more.
A network doesn't know what is right. Teach it by judging simple deeds, then hand it power over a fictional city and see what it decides. Teach it badly and it rules badly.
No sign-up needed. You get your own page with a unique link that anyone can open. Pages not visited for 3 days are deleted.