"Monitoring is the production derivative of evaluation: it measures how fast reality is moving away."
Overview
Drift monitoring and retraining convert production telemetry into controlled model maintenance instead of reactive firefighting.
Production ML and MLOps are the mathematical discipline of keeping a learned system useful after it leaves the notebook. The model is only one artifact in a larger graph of data, code, configuration, evaluation, deployment, monitoring, and response actions.
This chapter uses LaTeX Markdown throughout. Inline mathematics uses $...$, and display equations use `
`. The central habit is to turn production behavior into explicit objects: versions, hashes, traces, thresholds, queues, contracts, and release decisions.
Prerequisites
- Robustness and Distribution Shift
- Calibration and Uncertainty
- Online Experimentation and AB Testing
- Model Serving and Inference Optimization
Companion Notebooks
| Notebook | Description |
|---|---|
| theory.ipynb | Executable demonstrations for monitoring drift and retraining |
| exercises.ipynb | Graded practice for monitoring drift and retraining |
Learning Objectives
After completing this section, you will be able to:
- Define production ML artifacts using mathematical notation
- Represent dependencies as auditable graphs and contracts
- Compute simple production statistics with synthetic data
- Separate offline evaluation from online monitoring
- Design release gates that combine quality, safety, latency, and cost
- Explain how versioning enables rollback and reproducibility
- Diagnose drift, skew, and production regressions
- Connect LLM traces to evaluations, guardrails, and retraining data
- Identify operational failure modes before they become incidents
- Build lightweight notebook simulations of production ML behavior
Study Flow
- Read the pages in order and pause after each page to restate the main definition or theorem.
- Run
theory.ipynbwhen you want to check the formulas numerically. - Use
exercises.ipynbafter the reading path, not before it. - Return to this overview page when you need the chapter-level navigation.