Machine Learning, FoundationsLesson 86 of 92

Module 9 · Into the world, and keeping it honest

Monitoring: what to watch, and in what order

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 of 10 in this chapter

This chapter’s goalTake a fitted model to a running service with a versioned artefact, a reproducible training run, monitoring that distinguishes covariate shift from concept drift, a stated retraining trigger, and a written record of what the model was trained on and who it should not be used for.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:53Not available
Full audiobookNot availableNot available
Four layers of monitoring, cheapest first1. System healthRequest rate, errors, latency percentiles, memory.Catches a container restarting; misses a modelreturning confident nonsense.2. Input distributionsMeans, missing rates, unseen categories, against thetraining data. Where most problems appear first,within hours.3. Prediction distributionsMean score, shape, rate above threshold. A flag ratethat goes from 2% to 9% overnight is an incident.Needs no labels.4. Actual performanceAccuracy, AUC, calibration, per slice. What you careabout, and the slowest to arrive: 90 days for adefault, never for a loan you declined.The first three need no labels and move earlier; they are early warnings for the fourth, which is theonly one that can see concept drift and the last to arrive, because labels lag by weeks or forever.
The first three need no labels and move earlier; they are early warnings for the fourth, which is the only one that can see concept drift and the last to arrive, because labels lag by weeks or forever.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Four layers, from cheapest to most valuable

1. System health. Request rate, error rate, latency percentiles, memory. Standard software monitoring, and it catches the model container restarting every ten minutes. Necessary and not sufficient: a model returning confident nonsense is perfectly healthy by these measures.

2. Input distributions. For each feature: mean, standard deviation, missing rate, and for categoricals, the set of levels and the rate of previously unseen ones. Compare against the training data.

This is where most problems appear first, because most problems are upstream data problems. A column that becomes 100% null overnight, a currency changing units, a category renamed: all visible here within hours.

3. Prediction distributions. The mean predicted probability, the distribution’s shape, the rate of predictions above your decision threshold. You do not need labels for any of this, and it moves before your accuracy metrics can even be computed.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Monitoring: what to watch, and in what order’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/monitoring-what-matters (Accessed: 29 November 2026).