title: Mean Average Precision (MAP)
body: <p>I am using Mean Average Precision (MAP) to evaluate the performance of a Content Based Image Retrieval System.
  As shown in the figure, it is the average of the precision of queries.
  <a href="https://i.stack.imgur.com/KjdFZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KjdFZ.png" alt="enter image description here"></a></p>
  
  <p>In my database I have 200 images containing 4 categories, 50 images per category, I want to make retrieval with 4 queries (from each category, one query) , Can I calculate the MAP only for the TOP 10 images retrieved? Or I am obliged to calculate it for the 50 relevant images?</p>