Here we connect the ideas from Course 6 to neural networks. Loss is the number measuring how wrong the model is — training aims to push it down. One epoch means the network has seen every example once. Typically we train for tens or hundreds of epochs.
A network does not train on all data at once. It uses small batches (e.g. 32 images) and adjusts weights after each bundle — stochastic gradient descent, whose small jitters often help find better answers.
The curves to watch: while training, plot loss on train and on validation. Both falling — good. Train keeps falling while validation rises — the network is overfitting: stop and shrink it, or add data.
What to remember:
- Loss = the error we want to shrink
- Epoch = seeing all data once; batch = a small bundle at a time
- The train/validation curves tell you when to stop