Minideas

Idea 3 of 15 · How machines learn

Three ways machines learn

With an answer key, without one, or by trial and error.

spamnot spamspammodelspam?examples + answers
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.

classificationwhich group?regressionwhat number?
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.

nobody named these groups
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.

+1 treat−1try, fail, adjust, repeat
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.

Swipe the card, or use the arrow keys.

Go deeper

Each card stack gives you the idea. These open resources go into the detail.