179 questions
No questions match those filters.
You want an automated trigger for model retraining base...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThe KS test feels rigorous because it produces a clean, familiar number, but it’s answering a question that stops being useful once your live traffic volume gets large. A p-value below 0.05 is a statement about whether an observed difference is likely to have arisen by chance, and that likelihood shrinks mechanically as sample size grows — it has nothing to do with whether the difference is large enough to matter. At a hundred samples, a KS test flagging a shift is informative. At a million-plus samples, which is routine live-traffic volume, even a microscopic, operationally irrelevant shift in a feature’s mean will produce a p-value near zero, because with enough data almost any two distributions are formally distinguishable. Wire that test into an automated retraining trigger and you get an on-call rotation woken up nightly to spend real compute retraining a model whose actual performance hasn’t moved at all.
The fix is changing the question. Stop asking whether two distributions are different — at production scale the answer is always yes — and start measuring how different, in units that correspond to something you can act on. Wasserstein distance (how much “work” it takes to transform one distribution into the other), Population Stability Index, and KL divergence all quantify magnitude of shift rather than likelihood of any shift at all, and none of them inflate automatically with sample size the way a p-value does.
The last step matters as much as the metric choice: don’t pick a threshold by intuition. Calibrate it against history — find the distance value that has historically preceded a real, measured drop in a validation metric like AUC, and set the retraining trigger there. That turns an alert into a signal correlated with actual model degradation instead of a statistical artifact of scale.