Module 12 · Lesson 5 of 12Pro
Ranking metrics: NDCG, MAP and recall at k
- Level
- Intermediate
- Reading time
- 16 min
When you finish this page you can
- Compute precision and recall at k, reciprocal rank, average precision and NDCG for one ranked list by hand and in NumPy.
- Explain which positions and which kinds of hit each metric rewards, and pick the one that matches what a customer sees.
- Set up an offline ranking evaluation with a time-based split, per-customer scores and an honest average.
- Treat a top-k list cut by a budget, such as a voucher list, as a ranking problem with its own metric.
Builds on 3 lessons
Start with Module 10, lesson 518 minVideo lesson · coming soon
Same hits, different rows
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
View all plansAlready Pro? Sign in