Share
Share
Copy Link
In this article
Close
Training changes the network one example at a time. It keeps the new weights and biases for the next example.
After its first update, both weights are 1.2 and both biases are 0.2.
Give it 2. The hidden neuron gets (2 × 1.2) + 0.2 = 2.6. The output is (2.6 × 1.2) + 0.2 = 3.32.
The target was 4. The network measures this mistake and adjusts again. From here on, we use a smaller step size, or learning rate, of 0.01.
One trip through inputs 1, 2, and 3 is an epoch. That's three updates.
To track progress, we average the squared errors on all three examples.
| Completed epochs | Average squared loss |
|---|---|
| 0 | 4.666667 |
| 1 | 0.058867 |
| 10 | 0.036375 |
| 200 | 0.0000021 |
Exercise
Advance one epoch. Which prediction is closest to its target? Jump ahead to 200 epochs and check again.
Read Next
QUOTE:
"Amateurs hack systems, professionals hack people."