Problem
A retailer sells promo placements to suppliers who want to advertise a brand to a target audience. For every campaign, business analysts must find the customers most likely to make a target purchase. Done by hand, it takes ML expertise, ad hoc compute and many approvals, and campaigns launch so often that this becomes a bottleneck. The audience is also hard to model: offline purchases lag the message, baskets look alike, and loyalty-card data is incomplete.
Example from the article: a supplier wants to win back customers who bought its brand earlier but not in the last N days, using personal offers.
Solution in brief
Magnit built ATAS, a web service where an analyst creates a campaign, sets the target action and dates, and gets each customer's probability of the target purchase. Behind it, a binary classifier is trained and scored near real time by an automated pipeline, with campaign parameters and metrics logged for later analysis. The whole service and UI are written in Python.
Questions this case answers
- How to rank customers by their probability of a target action in a future window when business analysts without ML skills must run the selection on demand
- How to turn a repeated ad hoc modeling task into a self-service, versioned and observable service maintained by the data science team alone
- How to pick the most relevant audience for a supplier-funded promo campaign without a data scientist in the loop?
- How to score every customer's probability of a target purchase during a campaign window?
Tools and methods
- Binary classification (propensity model) — probability of a target purchase in the campaign window
- CatBoost on aggregated features — first modeling approach
- Wavelet scalograms + CNN — second approach on purchase and app time series
- FastUI, FastAPI, Pydantic — pure-Python UI and backend
- Postgres, Greenplum — application state and customer data
- Kubernetes, CI/CD, Prometheus, Grafana — deployment and monitoring
Google or a one-time email code. No password.
