多分类和目标检测中的mAP正负样本划分和区别
具体例子以及VOC和COCO中mAP指标
多分类具体计算:AP是衡量某一特定的类别的指标。对某一个特定类别例如猫,按照概率排序,根据ground truth和和概率threshold计算precision和recall,后根据不同的precision计算平均的precision。
多分类例子
- 按照probability排序
- 按照threshold计算precision和recall
- 根据不同的precision计算AP。
id | probility | ground truth | threshold | precision | recall |
---|---|---|---|---|---|
1 | 0.9 | 1 | 0.9 | 1/1 | 1/3 |
2 | 0.8 | 0 | 0.8 | 1/2 | 1/3 |
3 | 0.7 | 1 |