internalsGet Pro

Module 16 · Lesson 8 of 15Pro

Learning to rank

Level
Advanced
Topic
Recommendation and ranking systems
Reading time
18 min

When you finish this page you can

  1. Explain why a ranking model with a better log loss can still order each request’s products worse.
  2. Build ranking training data as request groups with graded labels from taps, add-to-cart and purchases.
  3. Compare pointwise, pairwise (RankNet) and LambdaRank-style losses, and pick one for a ranking stage.
  4. Recognize how position bias in logged clicks teaches a ranker to copy the old order, and name the usual fixes.
  1. Logistic regression: predicting probabilities13 min
  2. Gradient boosting: XGBoost, LightGBM and CatBoost18 min
  3. Ranking metrics: NDCG, MAP and recall at k16 min
  4. Recommendation systems: the problem they solve13 min

Video lesson · coming soon

A better loss and a worse row

is our example online store. It now serves 5 million customers a day from 20 million products. Its home page shows a “Picked for you” row of 20 tiles, and its search page lists products for each query. Both lists come from one type of model: for each request, it scores about 200 candidate products, and the page shows them best first.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan