SIGN IN SIGN UP
roboflow / supervision UNCLAIMED

We write your reusable computer vision tools. 💜

36796 0 0 Python

Fix `MeanAverageRecall` compute mAR@K using top-K detections per image [COCO-compliant] (#2136)

* Supersedes #1967
* fix: COCO-compliant mAR calculation
* Add complex test of mAP
* fix(metrics): cast optional detections fields in mAR metric for mypy
* Add `create_yolo_dataset` utility and refactor tests with fixtures for reusable scenarios
* Refine docstrings for clarity and consistency, adding inline formatting and fixing typos in test helpers and metrics.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: jirka <6035284+Borda@users.noreply.github.com>
J
Jiwon committed
124be19928e42f3930ee5698c36906288ee0f51b
Parent: 839d117
Committed by GitHub <noreply@github.com> on 2/12/2026, 8:59:11 AM