Skip to content

Commit

Permalink
Fix docstring typos for MulticlassAveragePrecision, `MultilabelAver…
Browse files Browse the repository at this point in the history
…agePrecision` (#1820)
  • Loading branch information
cdboer authored Jun 3, 2023
1 parent c03a716 commit 5a01f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/torchmetrics/classification/average_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def plot(


class MulticlassAveragePrecision(MulticlassPrecisionRecallCurve):
r"""Compute the average precision (AP) score for binary tasks.
r"""Compute the average precision (AP) score for multiclass tasks.
The AP score summarizes a precision-recall curve as an weighted mean of precisions at each threshold, with the
difference in recall from the previous threshold as weight:
Expand Down Expand Up @@ -307,7 +307,7 @@ def plot(


class MultilabelAveragePrecision(MultilabelPrecisionRecallCurve):
r"""Compute the average precision (AP) score for binary tasks.
r"""Compute the average precision (AP) score for multilabel tasks.
The AP score summarizes a precision-recall curve as an weighted mean of precisions at each threshold, with the
difference in recall from the previous threshold as weight:
Expand Down

0 comments on commit 5a01f34

Please sign in to comment.