Codele / Machine learning: one neuron to deep learning
Weights, bias and activation
A neuron has two more pieces: a bias, which says how eager it is, and an activation, which squashes the total into a clean answer.
- The bias is an extra number added to the sum. It sets how eager the neuron is to say yes.
- The activation turns the total into the neuron’s answer. A step jumps from 0 to 1 at one point.
- The sigmoid is a smooth activation: it bends gently from 0 to 1, so a small change in total gives a small change in answer.
- Changing the bias slides the total left or right, so the same inputs can give a different answer.
- The limit from the last lesson is a bias in disguise: needing a total of 3 is the same as a bias of negative 3.
Loading the playable lesson…