Vaibhav Nakrani
← WorkLog 10 / 11Forecasting

Festival demand forecast

An online store sells one product for one festival a year. Order too little from suppliers and the bestsellers run out weeks early. Order too much and the stock is worthless the day after.

Client
A festival-gifts store selling online
Role
ML engineer
When
July – August 2026
Stack
TabICL v2, scikit-learn, Shopify API, Python
39.5 → 22.7%forecast error on the top 50 products, held-out season
55+alternative models tested and rejected
3supplier order plans produced in season
2past seasons of data to learn from
How it works

A store that sells festival gifts has to order its stock weeks ahead. The forecast answers one question per product: how many more will sell between today and the last shipping day?

The model is TabICL, a ready-made model for tables of numbers. It looks at last season as worked examples and predicts this one. It beat everything else I tried, more than 55 other setups. On a season it had never seen, its error on the top 50 products was 22.7%, against 39.5% for simple arithmetic. The forecast is then turned into a supplier order with some extra on top, most of it for the bestsellers.

Problems and fixes

The festival moves every year. Calendar dates don't line up from one season to the next. So every day is counted as “days to go” until the festival, and the seasons are compared on that.

Last year's numbers were the wrong size. Sales grew about four times between seasons, so a model trained on last year's counts had never seen numbers that big. It now predicts sales compared with how fast each product is already selling. A product selling 50 a day and one selling 500 a day then look alike to it.

Products got new IDs every year. The store set its products up from scratch each season, so last year's bestseller had no history. I matched them across years by tidied-up name.

A sensible idea made it worse. Telling the model how old each product was roughly doubled the error, so it came out. With only two seasons of data, the test decides what stays.

Good per product, wrong in total. Added up across all products, the model's numbers came out 22% too high for the store. So the store total comes from a separate calculation, and the model is used where it wins: ranking and sizing the top products.

Working on something like this? Message me on LinkedIn → or email nakranivaibhav14@gmail.com