How Does AI Learn?
Explore how some AI systems learn from training examples, labels, and data.

Learning from Examples
People learn in many ways: by listening, practising, asking questions, and using experience. Some AI systems learn in a more limited way by analysing many examples. This process is called training. During training, a computer program changes its internal mathematical settings so that it becomes better at a specific task. It does not understand the examples exactly as a person does.
Suppose a team wants to build a system that sorts photographs of cats and dogs. They collect a dataset containing many pictures. Each picture receives a label such as cat or dog. The system examines features in the labelled examples and gradually connects certain combinations of features with each category. One ear shape alone is not enough; the system uses many details together.
After training, the team tests the system with different pictures that were not in the training dataset. If it sorts most of them correctly, the model may be useful. If it makes many errors, the team investigates. Perhaps some labels are wrong, the pictures are too similar, or one category has far more examples than the other.
The quality and variety of data matter. Imagine that almost every dog picture shows a dog outdoors, while every cat picture shows a cat indoors. The system might learn to pay attention to the background instead of the animal. It could then make a poor prediction when it sees a dog inside a house.
Training is not the same for every kind of AI. Some systems learn with labelled examples, some look for structure in unlabelled data, and others improve through feedback. In every case, people make important choices about the task, the data, the tests, and whether the result is safe enough to use.