Compute the mean average precision for multi-class classification NOTE: The current implementation is only suitable when we have a small number of classes and data items.
Compute the mean average precision for multi-class classification NOTE: The current implementation is only suitable when we have a small number of classes and data items.
For every test image, this contains a list of scores for each class
For every test image, this contains list of valid labels. Labels are assumed to be class ids.
An array containing average precision scores for each class
MeanAveragePrecision (MAP) calculator based on MATLAB code from the encoding eval toolkit at http://www.robots.ox.ac.uk/~vgg/software/enceval_toolkit/