How would you check the efficacy of an AI Model?
This is an evaluation question. Not an accuracy question. A model is effective only if it beats the current way of doing the job and moves the business number it was built for.
Step 1. Clarifying Questions
- Which model, and what job? Assume the delivery time (ETA) prediction shown before the order on Swiggy or Zomato.
- What does it replace? Assume a rules-based estimate (distance plus average prep time).
- Who acts on the output? The customer decides whether to order. Operations plans riders.
Why it matters: the ETA is a promise. Too optimistic and users get angry when food is late. Too cautious and users leave before ordering.
Step 2. Three layers of efficacy
1. Model metrics (offline): is it accurate?
2. Product metrics (online): do users behave better because of it?
3. Business metrics: does it move orders, cost and trust?
A model can win layer 1 and lose layer 3.
Step 3. Offline evaluation
- Error: mean absolute error in minutes, and % of orders within ±5 minutes of actual.
- Bias: are we late more often than early? Late hurts more than early, so measure them separately.
- Slices: city, restaurant type, hour, rain. A model that is fine on average and bad on a rainy Friday night is not fine.
- Baseline: compare with the rules-based estimate on the same holdout. No baseline, no conclusion.
- Test on last month's orders, not a random split. Time-based testing is closer to real life.
Step 4. Online evaluation (A/B test)
- Primary: on-time delivery against the promised ETA.
- Conversion from menu to order. Does a more honest ETA lose orders?
- Cancellations after ordering, "where is my order" support contacts, ratings that mention delay.
Step 5. After launch
- Drift: new restaurants, new cities, festival weeks. Retrain when error on recent data rises.
- Feedback loop: the ETA changes rider allocation, which changes actual delivery time. Watch for the model learning its own effect.
Step 6. Launch criteria (illustrative)
Launch if the on-time rate rises 3+ points, conversion drops by no more than 0.5%, and orders late by 15+ minutes don't rise in any top-10 city.
Cross question: offline accuracy improves but conversion drops. Now what? The old ETA was probably optimistic and won orders it later disappointed. Check cancellations and repeat rate before calling it a loss.
Interview tip: always name the baseline and the business metric. "92% accurate" means nothing until you say compared to what, and what changed for the user.
Community Answers (0)
No answers yet. Be the first to share your approach!