Notes
9 section summaries

Supervised Learning

Supervised learning is the art of learning from worked examples. Show a model enough cases where the answer is already known — emails marked spam or not, houses paired with their sale prices — and it can infer a rule to apply to cases it has never seen. Almost everything in this chapter follows from one question about that answer: is it a category or a quantity? Predicting a label is Classification — spam or not, which digit, which diagnosis — while predicting a number is Regression, such as a price, a temperature, or a risk score. That single distinction shapes the models you reach for and the way you judge them.

The sections ahead map the whole journey. Problem Types and Model Families frame what you are solving and the broad kinds of model available. Core Algorithms then works through the classics — from linear models to decision trees and support vector machines — while Multi-Class and Multi-Label Strategies and Ensemble Methods stretch them to harder settings. Model Development covers how a model is actually built and trained, Model Evaluation how you know it truly works, and the closing sections confront the awkward realities of Imbalanced and Cost-Sensitive Learning and the growing demand for Interpretability and Explainability.

One tension runs through all of it. A model that merely memorises its training data falls apart in the wild, so the real aim is to keep the Generalization Error low — the balance captured by the Bias-Variance Tradeoff. Its most common failure is Overfitting, held in check by Regularization and measured honestly with Cross-Validation. Beneath the surface, models are fit by Gradient Descent and steered by their Hyperparameter settings.

Start with Problem Types to get your bearings, then read on — each section builds on the one before.

Test yourself on Supervised Learning
A quick multiple-choice quiz over this area — instant feedback, each answer linked to the idea behind it.
Start the quiz