Mean average precision
Mean average precision is a metric that averages average-precision scores across queries, classes, or other evaluation units.
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
- Human-in-the-Loop Machine Learning: Active learning and annotation for human-centered AI
- Machine Learning Platform Engineering
What to know first
- precisionPrecision is the proportion of items predicted, selected, or retrieved as positive that are correct or relevant.
- accuracyAccuracy is the degree to which a result agrees with a specified truth, reference, or criterion, commonly measured as the proportion of evaluated predictions that are correct.
- recallRecall is the proportion of all relevant or actual positive items that a system successfully retrieves or correctly identifies.
- object detectionObject detection is a computer-vision task that identifies object instances in visual data, assigns them categories, and estimates their locations.
Related concepts
- performancekind of · 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.
- average precisionhas part · Average precision is a ranking or classification metric that summarizes precision across the recall levels of a precision-recall curve.
- TensorBoardused by · TensorBoard is a web-based tool for visualizing and monitoring machine-learning experiments and their logged data, including metrics, model graphs, and other run information.
- Intersection over Unionuses · Intersection over Union is the ratio of the intersection area or volume of two regions to the area or volume of their union.
- object detectionmeasures · Object detection is a computer-vision task that identifies object instances in visual data, assigns them categories, and estimates their locations.
- precisionuses · Precision is the proportion of items predicted, selected, or retrieved as positive that are correct or relevant.
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.

