Evaluate offline, then online
A new ranker passes several checks before it reaches every guest.
| Check | Runs on | Answers |
|---|---|---|
| offline NDCG | logged searches | which models to test |
| recall at 2,000 | logged bookings | does retrieval keep them |
| interleaving | live traffic, fast | which of two rankers wins |
| A/B test | live traffic, 3 weeks | ship it or not |
Offline, score where the booked listing landed
Each logged search becomes a test case with one relevant listing, the booked one. Airbnb's 2020 paper calls NDCG on the booked listing's position the most reliable gauge of model performance they have. For retrieval, check recall at the cut: the share of booked listings that survive into the 2,000 the ranker sees.
The differences that matter are small. The 2020 paper saw statistically significant booking differences online between models only 0.7% apart in NDCG. In 2026 the team wrote that a 0.3% improvement counts as significant.
Split train and test by time. Then break the metric out by segment: new listings, boutique hotels, first-time bookers, logged-out guests. An average hides the segments where ranking goes wrong.
In the editor, write by_segment(results), the mean NDCG of each segment, and worst(results). results holds 100 logged searches, and their overall mean, about 0.59, hides the new listings at 0.31.