What an artificial neuron computes: a weighted sum plus a bias, a sigmoid that turns it into a value between 0 and 1, a network of layers, and how many weights and parameters it holds.
Step 1 of 5 · A neuron
Step 1 of 5
A neuron
A line is a model of one input. When there are several inputs, such as the two numbers that place a point, you use a neuron: a small unit that multiplies each input by a weight, adds them up, and adds a bias:
A large weight means the input matters; a negative weight, that it argues against. The name comes from the nerve cells of the brain, which sum signals from other cells, but the artificial neuron is just this sum.
Step 2 of 5
Activation
After the sum, the neuron passes through an activation function. The output neuron of the network in the Scene uses the sigmoid,
which turns any number into a value between and : a large negative gives nearly , gives a half, and a large positive nearly . The hidden neurons use a similar function that gives a value between and .
Step 3 of 5
Layers
One neuron can only split the plane with a straight line. To learn complicated shapes, neurons are arranged in layers: the input layer, hidden layers, and an output layer, with each neuron joined to every neuron in the next layer. The network in the Scene takes the position of a point, , and decides whether it is blue or orange.
Step 4 of 5
Parameters
The weights and biases are the network’s parameters, like the and of the line. They are everything the network “knows”; the structure alone knows nothing.
Step 5 of 5
Reading the links
The network here has already been trained. Each link is drawn as thick as its weight’s size, blue when the weight is positive and orange when it is negative. A point from the data passes through the network, and the neurons light up by their activation.
Loading the interactive version…
Loading the interactive version…
Each step sets up the Scene for you, and a control marked “fixed” stays put for that step.
Practice · Calculate
A neuron has two inputs, and , with weights and , and its bias is . What is the weighted sum ?
Practice · Calculate
A neuron has two inputs, and , with weights and , and its bias is . What is the weighted sum ?
Practice · Choose
The neuron passes through the sigmoid, , which turns any number into a value between and . What comes out?
Practice · Choose
The neuron passes through the sigmoid, , which turns any number into a value between and . What comes out?
Practice · Calculate
The Scene’s network has input neurons, two hidden layers of , and one output neuron, and each neuron is joined to every neuron in the next layer. Each link has one weight. How many weights does the network have?
Practice · Calculate
The Scene’s network has input neurons, two hidden layers of , and one output neuron, and each neuron is joined to every neuron in the next layer. Each link has one weight. How many weights does the network have?
Practice · Calculate
Every neuron except the inputs also has a bias. How many parameters, weights and biases together, does training have to tune?
Practice · Calculate
Every neuron except the inputs also has a bias. How many parameters, weights and biases together, does training have to tune?
Practice · Choose
In the drawing, each link’s thickness is the size of its weight, and its colour the sign. What does a thick orange link into a neuron say?
Practice · Choose
In the drawing, each link’s thickness is the size of its weight, and its colour the sign. What does a thick orange link into a neuron say?
Lesson complete. Every practice question here is done.