Skip to main content

Your team retrains all 40 production models every night, which costs about ₹18 lakh a month in compute, and nobody remembers why. How would you decide which models really need it?

Machine learning basics · Pro 2

Short answer

I would measure instead of guessing. For each model, compare a model trained today with ones trained a week and a month ago on fresh data. If the old one is as good, nightly retraining is waste. Then I set cadence per model by decay rate and business value, add drift triggers, and keep the retraining pipeline tested.

Deeper answer

Retraining frequency should follow how fast the world changes for that model. A fraud model facing new attack patterns may lose value in days. A model that predicts delivery time from distance and city may be stable for months. A staleness test makes this visible: evaluate models of different ages on the newest labelled data and plot quality against age.

There are trade-offs in both directions. Retraining rarely saves money, but the pipeline then runs seldom and may be broken when you need it, so keep a scheduled dry run. Retraining often adds risk too: every new model is a release that can go wrong, and it needs automatic validation against the current one. A possible result: 5 models stay nightly, 20 go weekly, and 15 go monthly with drift alerts. Interviewers listen for evidence per model, a link between cost and value, triggers, and safe promotion.

What a strong answer covers

Answer it out loud in the mock interview about 3 min

Follow-ups to expect

Common mistakes

Learn it

Monitoring and drift

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.