Quiz Entry - updated: 2026.11.25
How does a neural network learn to classify, for example, a polyp image?
It predicts a label (y'), compares it with the correct label (y) through a loss function L(y', y), and adjusts its weights to reduce the error, over many examples.
* Supervised training: guess forward, measure the error with the loss, adjust the weights backward, repeat *
Take a network that should recognise a sessile serrated adenoma on endoscopy images:
- Input: the image is fed in as features x₁ … xₙ.
- Prediction: the network outputs a guess y', for example "ball" or "hyperplastic polyp".
- Compare: the guess is compared with the true label y = "sessile serrated adenoma" through a loss function L(y', y) that measures how wrong it was.
- Adjust: the weights are changed slightly to make the error smaller.
- Repeat with many labelled images until y' matches y reliably.
This is supervised learning. The network never "understands" what a polyp is; it tunes numbers until its outputs match the labels. So the quality of the labels sets the ceiling on the quality of the model.
Go deeper:
3Blue1Brown: Gradient descent, how neural networks learn — how a cost function averages the error over labelled examples and how the weights are nudged to lower it.
Wikipedia: Loss function — what a loss function measures and common choices.
Wikipedia: Backpropagation — how the error is passed back through the layers to update each weight.