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.

PieceThe question to answerStays search with no text queryInteresting images in an unlabeled pile
ObjectiveWhich outcome should move?Bookings that aren't cancelledImages a reviewing team finds worth a look
LabelWhat does the model predict, from which event?Was this listing booked from this search?Nothing at first, then reviewer verdicts
DataWhere do examples come from, and how are they biased?Search logs, only what the old ranker showedA huge pile, mostly near-duplicates
FeaturesWhat's known at prediction time?Listing, guest, query, sessionEmbeddings from a pretrained model
ModelThe simplest model that captures the signalGradient boosted trees, then a neural rankerNearest-neighbor novelty, then a small classifier
ServingOnline or batch, latency, freshnessOnline, inside a p99 budgetBatch, bound by throughput
EvaluationOffline metric, online testNDCG on the booked listing, A/B on bookingsPrecision on a human-reviewed sample
MonitoringHow would you know it went wrong?Booking rate, feature freshness, score driftReviewer 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.