LESSON 5.11 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
Ranking losses
Watch three ranking losses push the scores of one search query into order.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 5.11 · RANKING BAYW = (0.90, −0.40) · 4 OF 13 PAIRS WRONG
01
Stage 1 of 5 · Score the list
A linear model scores 6 documents for one query. 4 of 13 label pairs are in the wrong order.
Explain it simply
A search query brings back a few documents. The model gives each one a score from two features, word match and clicks. The list puts the highest score on top. Right now the model likes word match but dislikes clicks, so d4 sits above d1, the best document.
A list of 6 documents, ranked by score. From the top, the labels read 2, 3, 0, 2, 0, 1.
features x, labels y, target P_yweights wscores s, model P_slosses, pusha missing label step
Toy: 1 query, 4 to 8 documents, 2 features; 25 steps, η = 0.2
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each score is the weights times the features of the document.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 2 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.