179 questions
No questions match those filters.
How do you run a canary deployment for a machine learni...
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 plansA canary for a normal service asks whether the new version is reliable — do requests succeed, is latency acceptable. A canary for an ML model has to ask a second question a service canary never needs to: is the new model actually right more often, not just up and responsive. A model can have perfect latency and zero errors while quietly making worse predictions than the one it’s replacing, and standard infrastructure metrics will show a clean canary the whole time.
That means the canary’s monitoring has to include the model’s actual accuracy, precision, or AUC against ground truth as it becomes available, alongside the prediction distribution — a sudden shift in how often the model predicts each class is a warning sign even before ground-truth labels catch up. Routing also needs consistent hashing on a stable key like user ID rather than random assignment, so a given user’s experience doesn’t flicker between old and new model behavior request to request during the multi-day ramp — a real concern for anything user-facing like scores, rankings, or recommendations.
A fraud model canaried this way at 5% traffic for 48 hours, then 25% for another 48, keeps the previous version warm the entire time and only reaches 100% once both the infrastructure metrics and the model-quality metrics clear their thresholds together.