← Machine Learning Foundations
Free
Supervised Learning Mental Models
Features, labels, hypothesis class, and the train/serve gap.
Supervised Learning Mental Models
Supervised learning estimates a function (f(x) \to y) from labeled examples.
Core vocabulary
- Features (x): measurable inputs
- Label (y): the target you can supervise
- Hypothesis class: the family of functions your model can represent
- Loss: how wrong a prediction is
The workflow that actually matters
- Define the decision the model will support
- Collect representative labels
- Split data to estimate generalization (not just fit)
- Establish a baseline before complex models
- Evaluate with metrics tied to business cost
Common failure modes
- Leakage from future or label-derived features
- Optimizing accuracy when recall/precision matter
- Ignoring distribution shift between train and production