AutoMetric
AutoMetric copied to clipboard
Error in MAP value
I am getting very good segmentation performance with my custom dataset, however, when I tried to plot the precision recall curves and ROC curves, the ROC curve turned out to be good but the MAP value was the least, however, my precision recall curve was very close to ideal. I have attached the PR graph [herewith:]
)
Is there an issue with the MAP formula used in the autometric code?
MAP = np.round(np.sum((Precision[1:] + Precision[:-1]) * (Recall[:-1] - Recall[1:])) / 2.,4)
Thanks for your help.
Excuse me, have you solved this problem?