01Chapter 1: Two paths to the same model: training and servingThis chapter assumes you can read basic Python and pandas, and that you know the supervised learning workflow of train, validate, and predict. You should also have a general idea of what it means to put a model behind an API or a batch job. Basic statistics (mean, variance, histograms) help in the l7 min read
02Chapter 2: What training-serving skew is and why it fails silentlyThis chapter assumes you know the basic supervised learning workflow (train, validate, predict), can read Python and pandas, and have a general idea of how a model is deployed behind an API or a batch job. It also assumes you are comfortable with means, variances, and histograms.6 min read
03Chapter 3: Skew, data drift, and concept drift: how they differThis chapter assumes you know the supervised learning workflow (train, validate, predict), basic pandas, and simple statistics such as means and histograms. It also assumes you have seen the two data paths of a deployed model, the training path and the serving path.6 min read
04Chapter 4: Cause 1: the same feature written twiceThis chapter assumes you can read Python and pandas, and that you know the train, validate, predict workflow. It also assumes you have a rough picture of a model served behind an API or batch job. By the end you should be able to spot duplicated feature logic in a codebase, explain how the copies di5 min read
05Chapter 5: Cause 2: statistics and vocabularies fitted at training timeThis chapter assumes you can read pandas and scikit-learn code. It also assumes you know the fit/transform split in scikit-learn and have seen a model trained offline and served behind an API or batch job. The previous chapter covered skew caused by writing the same feature logic twice. Here the cod6 min read
06Chapter 6: Cause 3: different data sources, schemas, and missing-value handlingThis chapter covers the third cause of training-serving skew: the model's inputs come from different places or arrive in different shapes in training and in production. It assumes you know basic Python and pandas, the train, validate, predict workflow, and the idea of a model behind an API or batch 5 min read
07Chapter 7: Cause 4: time leakage and point-in-time correctnessThis chapter assumes you can write pandas code, know the train/validate/predict workflow, and have seen the earlier chapters on duplicated feature code, fit-time statistics, and data source differences. Those causes make the same feature differ between two code paths. Time leakage is different. The 6 min read
08Chapter 8: Prevention: one transformation, used in both pathsThis chapter covers the main fix for duplicated feature logic: write each transformation once and call it from both the training path and the serving path. It assumes you can read pandas and scikit-learn code, know the train, validate, predict workflow, and have seen the earlier chapter on duplicate6 min read
09Chapter 9: Prevention: ship preprocessing inside the model artifactThis chapter assumes you can write Python and pandas, know the train/validate/predict workflow, and have a rough idea of how a model sits behind an API or batch job. It also assumes you have read the earlier chapters on code skew and fit-time state.5 min read
10Chapter 10: Prevention: feature stores and a single feature definitionThis chapter assumes you have read the earlier chapters on code skew and point-in-time correctness. It also assumes you can read pandas code and know the difference between a batch job and an online API. It covers what a feature store is, which skew causes it removes, and which ones it leaves in pla5 min read
11Chapter 11: Prevention: validate inputs at serving timeThis chapter assumes you know basic Python and pandas, and the earlier chapters on how training and serving paths differ and on shared transformations. You should also know how a model is called behind an API or batch job.5 min read
12Chapter 12: Testing offline and online parityThis chapter assumes you can write pytest tests and use pandas. It also assumes you have seen the earlier chapters on duplicated feature code, shared transformations, and bundled pipelines. Those chapters reduce the chance of skew. A parity test checks that the reduction worked, and it keeps working5 min read
13Chapter 13: Detection: log the features the model actually receivedThis chapter assumes you can write Python and pandas, know the train, validate, predict workflow, and have a rough picture of a model served behind an API or batch job. It also assumes you know what a histogram, a mean, and a variance are.7 min read
14Chapter 14: Detection: comparing distributions with PSI and the KS testThis chapter assumes you can read pandas and NumPy code, and that you know what a histogram and a quantile are. It also assumes your serving system already logs the features the model received, which the previous chapter covers. Here you turn those logs into a number that tells you whether a feature5 min read
15Chapter 15: Shadow deployments and canary releasesEarlier chapters showed how to prevent skew with shared transforms, bundled pipelines, and parity tests, and how to detect it by comparing logged serving features with training features. This chapter covers the last safeguard before a model reaches all users: releasing it gradually, so that any skew6 min read
16Chapter 16: Responding to skew: triage, rollback, fix, retrainThis chapter assumes you can read a PSI or KS alert, because earlier chapters covered detection. It also assumes you know the four causes of skew (duplicated feature code, fit-time state, differing data sources, time leakage). It covers what to do in the hours and days after an alert fires. The orde5 min read