Alexey Tyurin

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:

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.

Great Learning Certificate of Achievement presented to Alexey Tyurin for extraordinary performance in the Hackathon Challenge – Restaurant Turnover Prediction, March 2023.
Certificate of Achievement from Great Learning. The rank comes from the hackathon leaderboard; the certificate itself does not state a place.

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:

  1. Hold out first. 15% of the restaurants are set aside before any cleaning, with the same split settings as in 2023.
  2. Clean only the training part. Outlier limits and the means used for missing values come from the training rows only.
  3. Separate early stopping from the result. The number of trees is chosen on a validation part, never on the holdout.
  4. Derive the shift from data. The fixed INR 1.55 million added in 2023 is replaced by the average validation error.
  5. 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:

Holdout RMSE: mean baseline INR 23.41 million; CatBoost INR 21.43 million; CatBoost with validation shift INR 21.28 million.

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:

Holdout RMSE by turnover quarter. Lowest quarter, 106 restaurants: baseline 16.50 million, CatBoost 14.83 million. Second quarter, 120 restaurants: baseline 6.86 million, CatBoost 8.78 million. Third quarter, 126 restaurants: baseline 3.77 million, CatBoost 5.66 million. Highest quarter, 172 restaurants: baseline 38.19 million, CatBoost 34.17 million.

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

Top features by CatBoost importance: opening date 12.8%, hygiene rating 9.6%, cuisine 9.4%, city 8.9%, Instagram popularity 7.7%, Facebook popularity 5.5%, live music rating 4.6%, Zomato rating 4.0%.

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.

← Back to projects