Machine learning · Great Learning hackathon · March 2023
Predicting restaurant turnover
How much of a restaurant's annual turnover can be read from where it is, what it serves, how people rate it and how popular it is online?
- Hackathon leaderboard
- 1st place
- Leaderboard RMSE
- INR 12.15m
01 / The task
Estimate turnover from a restaurant profile
Great Learning ran this hackathon for learners in its programmes. I took part through the UT Austin postgraduate program in data science and business analytics. It closed on March 11, 2023.
Each participant received about 4,000 restaurant profiles from cities across India. For 3,493 of them the annual turnover in rupees was known; for the other 500 it had to be predicted. A profile combines three kinds of information:
- basic facts: city and location type, cuisine and theme, opening date, parking, outdoor seating, liquor licence and fire audit;
- outside signals: Facebook and Instagram popularity scores and a Zomato rating;
- survey and audit scores for food, hygiene, service, value, ambience and live entertainment.
Submissions were ranked by root mean squared error (RMSE) on a hidden test set, so large misses on high-turnover restaurants weigh heavily.
02 / The 2023 entry
First on the leaderboard
My final model was CatBoost on 32 restaurant attributes. Before it, I tried linear models, decision trees and stacking. Missing values were filled with column means, outliers in turnover and popularity were removed, and the opening date became "years since the earliest opening". A fixed amount was added to every prediction.
My best submission ranked first on the leaderboard, with an RMSE of INR 12,150,949 on the hidden test set. Great Learning awarded me a Certificate of Achievement for the challenge.
03 / Revisited in 2026
Keep the model, fix the evaluation
The notebook was built for the leaderboard, and its own error check was optimistic. In 2026 I kept the features, the model and its settings, and changed five things:
- Hold out first. 15% of the restaurants are set aside before any cleaning, with the same split settings as in 2023.
- Clean only the training part. Outlier limits and the means used for missing values come from the training rows only.
- Separate early stopping from the result. The number of trees is chosen on a validation part, never on the holdout.
- Derive the shift from data. The fixed INR 1.55 million added in 2023 is replaced by the average validation error.
- Read dates correctly. Opening dates are written day first; 1,273 of them had day and month swapped.
04 / The result
A modest gain over the average
Error on 524 restaurants that played no part in training or tuning:
CatBoost with the shift is about 9% better than predicting the average turnover for every restaurant. This is one random split of the hackathon data; it says nothing about other years or markets. The leaderboard score above was measured on a different, hidden set of restaurants and cannot be compared with these numbers.
05 / Where it helps
Better at the extremes, worse in the middle
The holdout restaurants are grouped by turnover into quarters, with the limits taken from the training part. Each bar is the error for a whole group:
The model gains on the lowest- and highest-turnover restaurants, where the average is far off. It loses in the two middle quarters, where the average is already close. Most of the remaining error comes from the highest quarter.
06 / What the model uses
Age, hygiene, cuisine and city
Importance shows which attributes the model relies on, not what causes turnover. Attributes that move together can share or swap importance.
07 / Materials
About the code and data
The hackathon data belongs to Great Learning and is not published here. The notebooks are not public at this time. The charts on this page show only group totals and model properties, not individual restaurants.