Core ML Concepts · beginner · concept 3 of 176
Supervised Learning
Learning from labeled examples, the model sees inputs paired with correct outputs and learns to predict outputs for new inputs. Includes classification and regression. In business language this is predictive AI, the discriminative counterpart of generative AI: it scores and forecasts instead of creating content.
Key terms
Learn these first
Where you meet it in the real world
Email spam detection, image classification, price prediction, medical diagnosis
Deep dive · 6 min
Supervised Learning
Supervised learning is learning from examples that come with answers. Each training case is a pair: input, correct output. The model guesses, the loss compares the guess with the provided answer, and gradient descent nudges the parameters. Most deployed ML value in the world, fraud scores, medical triage, translation, speech-to-text, is supervised at its core.
Classification and regression
Two output shapes cover most of it. Classification picks a category: which digit, spam or not, which of 10,000 products. Regression predicts a number: tomorrow's demand, a house price, time-to-failure. The canonical classification exercise is MNIST: 70,000 handwritten digits, 28 by 28 pixels each, collected from US Census Bureau employees and high school students. It is the dataset this tutorial's 3D network trains on, and it has been the field's 'hello world' for three decades.
The sacred split
You never grade a model on the examples it trained on, for the same reason you never grade students on the exact questions they memorized. Data is split: a training set the model learns from, and a held-out test set it never sees until evaluation. MNIST's own test digits were even written by different people than its training digits, so passing it means reading genuinely unseen handwriting. When someone quotes a model's accuracy, your first question should always be: on what held-out data?
In one glance
- Supervised = every training example carries the right answer
- Classification picks categories; regression predicts numbers
- MNIST: the canonical starter dataset, and this site's live demo
- Accuracy only counts on data the model never trained on
Videos
Stanford Online · YouTube
IBM Technology · YouTube
Guides and articles
Courses, papers, and more
The classic free chapter on exactly this task
The dataset's citation of record
This unlocks