add deprecation message to old mAP

This commit is contained in:
SkalskiP
2025-07-15 21:13:46 +02:00
parent a135bd6268
commit c4ede20a2d
+3 -2
View File
@@ -496,7 +496,8 @@ class ConfusionMatrix:
@deprecated(
"`MeanAveragePrecision` is deprecated and will be removed in "
"`supervision-0.31.0`. Use "
"`supervision.metrics.mean_average_precision.MeanAveragePrecision` instead."
"`supervision.metrics.mean_average_precision.MeanAveragePrecision` instead. The "
"deprecated implementation provides results that are inconsistent with pycocotools."
)
@dataclass(frozen=True)
class MeanAveragePrecision:
@@ -505,7 +506,7 @@ class MeanAveragePrecision:
`MeanAveragePrecision` is **deprecated** and will be removed in
`supervision-0.31.0`.
The current implementation provides results that are inconsistent with
The deprecated implementation provides results that are inconsistent with
`pycocotools`. Please use
`supervision.metrics.mean_average_precision.MeanAveragePrecision` instead,
which matches the results of `pycocotools` and is now the recommended approach.