All lessons in Machine Learning Engineering: Reliable Predictive Models
Learning Curves and Slice-Based Error Analysis
Distinguish data, capacity, and distribution problems using controlled comparisons.
30 minutes · Members lesson · preview
What you will learn
- Read a learning curve table and state whether the evidence points toward a data limit, a capacity or feature limit, or neither.
- Compute per-slice error rates and expected costs on validation rows and identify which slice concentrates the model's cost.
- Separate a prevalence change caused by covariate mix from a change in the conditional late probability using a hand calculation.
A validation log loss on its own tells you how far you are from where you want to be, but not why. The dispatch team at our fictional parcel carrier wants to know whether the late-delivery model would improve with another quarter of history, with a richer model, or with features that do not exist yet. Those are three different investments, and the way to tell them apart is a controlled comparison: change exactly one thing, hold the validation set fixed, and watch what moves. This lesson covers two such comparisons that need no new data: the learning curve, which varies training size, and slice analysis, which varies the subset of validation rows you score.