Diagnosing a Surge Model That Overfits to Holiday Weeks
Last updated: November 29, 2026
Quick Overview
A gradient boosted model that predicts supply-demand imbalance looks great in training but is erratic on normal weeks after being retrained on December data. How do you diagnose and fix the overfitting?
Uber
November 29, 20260
0
0 solved
A gradient boosted model that predicts supply-demand imbalance looks great in training but is erratic on normal weeks after being retrained on December data. How do you diagnose and fix the overfitting?
Surge pricing depends on short-term imbalance forecasts, and holiday periods distort them. Uber interviewers use this to see whether you can separate overfitting from distribution shift and pick concrete regularization levers for tree models.
What the Interviewer Expects
- Compare training, validation and backtest error to confirm overfitting versus shift
- Use time-aware validation that includes non-holiday weeks
- Tune tree regularization: depth, min child weight, learning rate, subsampling
- Consider down-weighting or flagging anomalous periods
- Check for features that only exist or explode during holidays
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Would you add a holiday feature or remove holiday data?
- How does early stopping work in boosting?
- How would you monitor this in production?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Get the numbers: training RMSE, validation RMSE, and error on the last four ordinary weeks. Also ask how validation was done. If validation was a random split within December, a low validation error s...
Approach
Separate two problems:
- Overfitting: big gap between train and validation error from the same period. The model memorizes noise.
- Shift: validation in December is fine but error on ordinary ...