Computer Science glossary · Grade 5 to Grade 9
Machine learning
What it means
Machine learning is a type of artificial intelligence where a computer learns to spot patterns by looking at lots of examples, instead of being given every rule by a person.
Examples
- Training a program with many labeled photos of cats and dogs so it can sort new photos.
- An email filter that learns which messages are spam.
- A music app suggesting songs based on what you have played before.
For teachers
In machine learning, a model is trained on example data (often labeled, such as photos tagged "cat" or "dog"), finds patterns, and then makes predictions about new data. The quality of the predictions depends on the training data: too few, unbalanced or biased examples lead to errors. Students can train simple image or sound classifiers and test what happens when the training data is changed.
Common misconception
Students sometimes think a machine learning program is programmed with all the answers. It learns from examples, so if the examples are limited or unfair, its predictions will be too.