📚 Course contents
AI & Computer Vision, lesson 16 of 52
How Neural Networks Learn: Walking Downhill in Fog
Introduction
Everyone says AI "learns", but what actually changes inside the computer? Some numbers, called weights, get nudged a tiny bit, thousands of times, until the predictions get better. Today you'll see exactly how, trace a prediction by hand, and build a small neural network from scratch with nothing but NumPy.
By the end of this lesson you'll be able to:
- Describe a neuron as a weighted sum of inputs followed by a squash
- Trace one prediction through a tiny network by hand
- Explain loss as a single number that says how wrong the model is
- Explain gradient descent as repeated small steps downhill, and the effect of the learning rate
- Read a loss curve
- Implement forward pass, backward pass and training loop for a 2-layer network in NumPy
- Compare training accuracy with test accuracy

