#AIGlossary
average precision at k
#GoogleCloud

A metric for summarizing a model's performance on a single prompt that generates ranked results, such as a numbered list of book recommendations. Average precision at k is, well, the average of the precision at k values for each relevant result. The formula for average precision at k is therefore:

(see image)

where:

n is the number of relevant items in the list.

https://developers.google.com/machine-learning/glossary#average-precision-at-k