15/31
Part 4 of 6 · Yes-or-no metricsLearn and do
Average precision takes the precision at every relevant item
Average precision rewards every relevant item near the top, not only the first.
Walk down the list and count the relevant items as you pass them. At each relevant item, take the precision of the list down to that rank: the count so far over the rank. Add those precisions up, and divide by the number of relevant items. Take rel from before, [1, 1, 0, 0, 1, 1], with 4 relevant items in all.
Relevant at ranks 1, 2, 5 and 6, with 4 relevant in all. What is the average precision, and with the list cut at rank 5?
Pick an answer above to see the rest