13. Drift Detection
Chapter 13 of 24 · 15 min
EXERCISE
Implement a rolling drift detector using the KL divergence method. Store a reference distribution from your initial training data, then implement a scheduled check that logs drift measurements and warns when divergence exceeds your defined threshold. Validate by injecting synthetic drift (scaling features by a factor) and confirming detection.