How Does AI Learn?
Explain how a model learns patterns from selected training examples and why separate testing is needed.

Training Is Practice, Testing Is a Check
Machine learning uses examples to adjust a model for a task. Imagine building a paper classifier that sorts fruit cards. Training cards show pictures with labels such as apple, orange, or banana. During training, the system searches for patterns that help connect an input with the expected label. People do not need to write one rule for every future fruit, but they still define the task and choose the examples.
The examples matter. If every apple card is red, the model may treat red as the main clue. It could then misclassify a green apple. A more useful training set includes relevant variation: different colours, sizes, angles, and backgrounds. Correct labels also matter because inconsistent labels teach an unclear task.
Testing must use separate examples. If the model is checked only on cards it already used during training, a high score may show memory of those examples rather than a useful pattern. Unseen test cards help measure whether the model can generalize to new cases.
This process is not the same as human learning or understanding. The model is optimized for a bounded task. People remain responsible for selecting data, checking errors, deciding whether the test matches real use, and stopping when the model is not suitable.
Learning objectives
Explain how a model learns patterns from selected training examples and why separate testing is needed.
- Explain the role of examples in machine-learning training.
- Distinguish training data from separate test data.
- Describe how labels and human choices shape a learning task.
- Explain why successful training does not mean human-like understanding.