With an answer key, without one, or by trial and error.
1 / 4
Supervised: learning with an answer key
Every example comes with the right answer. Show it emails marked spam or not spam, and it learns to sort new ones.
2 / 4
Two kinds of answers
Classification picks a group, like spam or not spam. Regression predicts a number, like a house price. The next idea shows how a regression model learns.
3 / 4
Unsupervised: finding groups on its own
No answers are given. The model spots which examples are alike, such as customers who shop the same way. This is called clustering.
4 / 4
Reinforcement: trial and error
The model tries actions and gets a reward or a penalty, like a dog learning tricks for treats. Game-playing AI and robots learn this way.