promptdojo_

Data drift and concept drift — step 6 of 7

Write drift_check(train_stats, window, threshold=2.0) returning [(feature, z)] for every feature whose serving-window mean shifted more than the threshold (z rounded to 1). Run it over the three-feature window, print the flagged list and the closing line "investigate before retraining - a drift flag is a lead, not a verdict".

full-screen editor opens — close anytime to keep reading.