PrepCity

Offline metrics: precision, recall, NDCG, MRR and AUC

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 10 pages · about 9 min

Offline metrics: precision, recall, NDCG, MRR and AUC

Before a new ranker ships, it is scored on logged data: did the products people wanted land near the top? Five common scores on one row of slots, in plain words. Then the classic surprise: a ranker that wins offline is flat online, because the log only holds what the old ranker chose to show.

What it is
Offline metrics score a ranker on past data: they replay logged rows and check where the products people actually took ended up.
What it is for
They are cheap, fast and repeatable, so every model change can be checked in minutes before any shopper sees it.
Use it when
As a gate before an online test, never instead of one. They judge the new ranker only on what the old one showed.

Words you’ll learn

  • Row
  • Impression log
  • Offline metrics
  • Precision
  • Recall
  • MRR
  • NDCG
  • AUC
  • Random slice
  • A/B test

Page by page