Log inStart free
LESSON 4.52 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Ranking metrics

Six ranking metrics score the same three ranked lists.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.52 · RANKING BAYLEARNED RANKER · K 5 · 8 RELEVANT ITEMS
01
Stage 1 of 6 · Ranked lists
A ranker sorts 10 items for each of 3 queries. Each cell shows a relevance grade, 0 to 3.
Explain it simply

Each row is one search, and the ranker puts its ten results in order, best guess on the left. The number in each cell is its grade, how useful a person said it is. Zero means not relevant. People mostly look at the first few results. So a ranking metric reads only the top 5, left of the ochre line.

Three rows of 10 cells. cheap flights: grades 2, 3, 2, 0, 1, 0, 1, 0, 0, 0. sort a list: grades 0, 3, 0, 0, 1, 0, 0, 0, 0, 0. cat photo: grades 0, 0, 3, 0, 0, 0, 0, 0, 0, 0. The cut keeps the top 5.

relevance gradecut Khits and metricsrelevant, missedbelow the cut
rank12345678910K = 5mean of 3 queriesquery 1cheap flights5 relevantquery 2sort a list2 relevantquery 3cat photo1 right class232010100003001000000030000000three ranked liststhe top K keeps ranks 1 to 5 · relevant items 5 + 2 + 1 = 8rank12345678910K = 5mean of 3 queriesquery 1cheap flights5 relevantquery 2sort a list2 relevantquery 3cat photo1 right class232010100003001000000030000000three ranked liststhe top K keeps ranks 1 to 5 · relevant items 5 + 2 + 1 = 8
Toy: 3 queries × 10 items, grades 0 to 3, seeded scores
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
si  →  sort  →  top K,gi∈{0,1,2,3}\sy{s}{param}{s_i} \;\to\; \text{sort} \;\to\; \text{top } \sy{k}{param}{K}, \quad \sy{g}{data}{g_i} \in \{0,1,2,3\}
K=5,  R=5,2,1K = 5,\; R = 5, 2, 1

Sort the items by score and keep the first K.

Common mix-ups

MYTHPrecision@K rewards the best items at the top.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With K = 5, switch to the random ranker. Does MRR go up or down?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.