liveBook · Manning

Mean average precision

Also called map

Mean average precision is a metric that averages average-precision scores across queries, classes, or other evaluation units.

How 2 Manning books explain it

AI Recommender Systems

Mean average precision is the mean across users or queries of average precision values computed at positions containing relevant items.

How it is used
Measures whether recommendations place multiple relevant items high in a ranked list during comparative model evaluation.
How deep it goes
Defines per-user AP and cross-user MAP and illustrates their ranking effect; does not specify how to handle users with no relevant items.
Examples
Contrasts relevant items at positions 1, 2, and 3 with positions 1, 5, and 9 despite equal recall.
What you can do after
Evaluate/understand ranking gains with MAP while checking baselines, user-level variation, coverage, and diversity before advancing a model.

Read how AI Recommender Systems explains mean average precision →

LLM Evaluation and Alignment, The Foundational Ideas

Mean average precision is the mean of average precision values computed over multiple retrieval queries.

How it is used
Evaluates retrieval rankings across queries, especially whether relevant documents appear high enough to influence generation.
How deep it goes
Defines AP and MAP and works through ranked documents, but does not descend into implementation details.
Examples
Uses a five-document ranking with relevant documents at ranks three and four to compare AP, Precision@5, and MRR.
What you can do after
Evaluate retrieval systems by computing per-query AP and averaging those scores across queries.

Read how LLM Evaluation and Alignment, The Foundational Ideas explains mean average precision →

Also covered in

What to know first

Related concepts

Questions about mean average precision

What is mean average precision?

Mean average precision is a metric that averages average-precision scores across queries, classes, or other evaluation units.

Which Manning books explain mean average precision?

AI Recommender Systems and LLM Evaluation and Alignment, The Foundational Ideas.

What should I know before learning mean average precision?

Manning books that teach mean average precision usually introduce precision, accuracy, recall and object detection first.

What is mean average precision a kind of?

Mean average precision is a kind of performance. Performance is a measure of how effectively a person, process, model, or system achieves its objectives, including qualities such as output quality, speed, and resource efficiency.

What are the parts of mean average precision?

Mean average precision includes average precision.

What is mean average precision also called?

Mean average precision is also called map.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.