How does a neural network learn?
A neural network is a model made of many small connected units, arranged in layers. Each connection has a number called a weight. Learning means adjusting these weights so the network's outputs get closer to the right answers.
The training loop in simple steps: 1) Give the network an example, such as an image with a known label. 2) The network produces a prediction. 3) A loss function measures how far the prediction is from the correct answer. 4) An algorithm called backpropagation works out how each weight contributed to the error, and the weights are nudged to reduce it. 5) This repeats over many examples.
A network does not “understand” in the human sense. It finds numerical patterns that worked well on its training examples.
What would you like a neural network to learn to do?