Do you apply confidence threshold before calculating mAP for YOLOv2? I've been using YOLO v2 for object detection and have been trying to use mAP for validating the model. 

For training I use a confidence threshold of 0.25, however I am unsure as to whether to apply this threshold to filter out predictions BEFORE calculating mAP in validation? or whether the threshold should be ignored and all proposals should be evaluated?
In the end the solution is not to apply the threshold prior to the mAP calculation. After researching further it turns out by definition that mAP is (roughly speaking) a measure of precision recall trade off calculated using all possible thresholds. By applying the threshold first you are not accounting for the higher recall the model would obtain by choosing a threshold less than or equal to the one applied.