10/39
Part 2 of 6 · FramingLearn
Framing any ML problem
The first boxes on the board are not models. They say what the system is for, and how you'll know it works.
| Piece | The question to answer | Stays search with no text query | Interesting images in an unlabeled pile |
|---|---|---|---|
| Objective | Which outcome should move? | Bookings that aren't cancelled | Images a reviewing team finds worth a look |
| Label | What does the model predict, from which event? | Was this listing booked from this search? | Nothing at first, then reviewer verdicts |
| Data | Where do examples come from, and how are they biased? | Search logs, only what the old ranker showed | A huge pile, mostly near-duplicates |
| Features | What's known at prediction time? | Listing, guest, query, session | Embeddings from a pretrained model |
| Model | The simplest model that captures the signal | Gradient boosted trees, then a neural ranker | Nearest-neighbor novelty, then a small classifier |
| Serving | Online or batch, latency, freshness | Online, inside a p99 budget | Batch, bound by throughput |
| Evaluation | Offline metric, online test | NDCG on the booked listing, A/B on bookings | Precision on a human-reviewed sample |
| Monitoring | How would you know it went wrong? | Booking rate, feature freshness, score drift | Reviewer hit rate per batch |
Every ML design has the same eight pieces. Walk them in order, and you won't skip the ones interviewers push on. The last two columns are two prompts candidates reported: Airbnb's search with no text query, and OpenAI's pile of unlabeled images.