Introduction to Information Retrieval, Christopher D. Manning, Prabhakar Raghavan, and Hinrich Schütze, 2008 (Cambridge University Press) - This foundational textbook provides a comprehensive treatment of information retrieval metrics, including Mean Average Precision, with theoretical explanations and examples.
Mining of Massive Datasets, Jure Leskovec, Anand Rajaraman, Jeff Ullman, 2020 (Cambridge University Press) - This book covers large-scale data analysis, including algorithms for recommender systems and their evaluation metrics such as MAP.