supervision/tests/metrics
Jirka Borovec 072f78471c
fix: resolve medium dataset findings (#2408)
- Reinstated NumPy-safe `Classifications` equality and ordered class-list comparisons in dataset equality.
- Restored greedy matching plus size-bucket scoring for Precision, Recall, F1, and MeanAverageRecall, with regression coverage for the medium-object boundary case.
- Filter size-bucket precision, recall, and F1 against target boxes so predictions no longer claim the bucket.
- Preserve confidence order for bucketed mAR@K scoring and return zero when a bucket has no support.
- Add regression coverage for bucket matching, empty-support mAR, top-K limits, and missing-mask errors.

---------

Co-authored-by: Codex <codex@openai.com>
2026-07-08 08:56:34 +02:00
..
utils perf(detection): count mask pixels with `count_nonzero` (#2361) 2026-07-01 23:22:46 +02:00
__init__.py refactor: reorganize project structure and update module imports (#2112) 2026-02-03 15:24:47 +01:00
conftest.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_detection.py fix(metrics): harden scoring edge cases (#2411) 2026-07-07 18:46:05 +02:00
test_f1_score.py fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
test_mean_average_precision.py fix(metrics): harden scoring edge cases (#2411) 2026-07-07 18:46:05 +02:00
test_mean_average_precision_area.py chore: bump minimum Python to 3.10 (#2260) 2026-06-29 14:45:30 +02:00
test_mean_average_recall.py fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
test_oriented_bounding_box_metrics.py Fix: resolve major complex review (#2388) 2026-07-02 18:14:04 +02:00
test_precision.py fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
test_recall.py fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00
test_size_bucket_regressions.py fix: resolve medium dataset findings (#2408) 2026-07-08 08:56:34 +02:00