Skip to content

Commit

Permalink
fixbug: use BinaryPrecisionRecallCurve instead of PrecisionRecallCurve (
Browse files Browse the repository at this point in the history
  • Loading branch information
rglkt authored Apr 9, 2024
1 parent 25fc952 commit 7a963e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anomalib/metrics/aupr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import torch
from matplotlib.figure import Figure
from torchmetrics import PrecisionRecallCurve
from torchmetrics.classification import BinaryPrecisionRecallCurve
from torchmetrics.utilities.compute import auc
from torchmetrics.utilities.data import dim_zero_cat

from .plotting_utils import plot_figure


class AUPR(PrecisionRecallCurve):
class AUPR(BinaryPrecisionRecallCurve):
"""Area under the PR curve.
This metric computes the area under the precision-recall curve.
Expand Down

0 comments on commit 7a963e9

Please sign in to comment.