01Chapter 1: Why models fail after deploymentA model that scored well on a held-out test set can still lose accuracy, return nonsense, or crash within weeks of going live. This chapter explains the main causes. It also shows how to tell a broken pipeline from a changed world, and it sets up the monitoring layers the next chapters build on.6 min read
02Chapter 2: What to monitor: operational, data, prediction and performance layersThis chapter assumes you can train and evaluate a supervised model, read basic statistics (distributions, p-values), and have deployed a model as a batch job or an API. It covers the four layers of monitoring and what each one can and cannot tell you. Later chapters go deeper on individual tests and7 min read
03Chapter 3: Operational health: latency, errors and throughputThis chapter covers the first monitoring layer, which asks whether the service is up and answering fast enough. It assumes you can deploy a model as an API or a batch job and that you know what a percentile is. Data quality, drift and performance come in later chapters. Operational metrics come firs6 min read
04Chapter 4: Catching broken inputs: schema, missing values and rangesThis chapter assumes you can write Python with pandas and NumPy, and that you have deployed a model as a batch job or an API. It covers the first data-level layer of monitoring: checks that find inputs that are broken, which is different from inputs that have drifted.5 min read
05Chapter 5: Covariate shift, label shift and concept driftThis chapter assumes you can train a supervised classifier, read a probability expression like P(y | x), and run a short Python script with NumPy and scikit-learn. It names the three ways production data can differ from training data. It also shows what each one looks like in monitoring and why they6 min read
06Chapter 6: Choosing reference data and comparison windowsEvery drift test compares two samples: a reference and a current window. The test only measures the difference between those two samples. If you pick a poor reference, you will get alerts that mean nothing, or you will miss real drift. This chapter covers how to choose both samples.6 min read
07Chapter 7: Testing one feature at a time: KS and chi-squareThis chapter assumes you know basic Python and NumPy, can read a p-value, and have already chosen a reference window and a current window (covered in the previous chapter). Here you compare one feature at a time between those two windows. You use the two-sample Kolmogorov-Smirnov (KS) test for numer6 min read
08Chapter 8: Scoring drift with the Population Stability IndexThe Population Stability Index (PSI) reduces the difference between two distributions to a single number. It is popular in monitoring because you can put it on a dashboard, compare it across features, and set one threshold for many features. This chapter explains how PSI is computed and how to read 5 min read
09Chapter 9: Watching prediction and score distributionsThis chapter assumes you can read basic Python and NumPy, know what a classifier score is, and understand hypothesis tests and p-values. It also assumes you have seen the Kolmogorov-Smirnov (KS) test, the chi-square test and the Population Stability Index (PSI) from the earlier chapters on univariat6 min read
10Chapter 10: Tracking model performance once labels arriveThis chapter assumes you can train and evaluate a classifier with scikit-learn, use pandas groupby and merge, and read a confidence interval. Earlier chapters covered input drift and prediction drift. Those are indirect signals. Once ground-truth labels arrive, you can measure what you care about, w5 min read
11Chapter 11: Monitoring when labels are late or missingThis chapter assumes you can compute classification metrics such as accuracy and ROC AUC, and that you know how to compare a reference window with a current window. It also assumes you have seen drift tests and prediction drift. Here the question is different: how do you judge model quality when the6 min read
12Chapter 12: When drift matters and when it does notThis chapter assumes you can run the KS test, chi-square test and PSI from the earlier chapters. It also assumes you know the difference between covariate shift, label shift and concept drift. The goal here is to decide what to do with a drift signal. A drift score tells you the data changed. It doe5 min read
13Chapter 13: Detecting multivariate drift with a domain classifierThis chapter assumes you can train and cross-validate a scikit-learn classifier, read a ROC AUC, and run the univariate drift tests from the earlier chapters (KS, chi-square, PSI). You should also know what the reference window and the current window are.5 min read
14Chapter 14: Setting thresholds and limiting false alarmsDrift tests produce numbers. An alert is a decision to interrupt a person based on one of those numbers. This chapter covers how to choose the cutoff, how to estimate how often it will fire when nothing is wrong, and how to reduce noise without hiding real problems.5 min read
15Chapter 15: Responding to drift: investigate, retrain or roll backAn alert tells you that something changed. It does not tell you what to do. This chapter covers the steps between a drift alert and a fix, and how to pick among four responses: ignore, investigate, retrain, or roll back.5 min read