Skip to content

Commit

Permalink
Merge branch 'binned_metrics' of https://github.com/maximsch2/metrics
Browse files Browse the repository at this point in the history
…into binned_metrics
  • Loading branch information
Borda committed Apr 13, 2021
2 parents 469f205 + 2d54032 commit 6c3ec24
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions torchmetrics/classification/binned_precision_recall.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@ class BinnedPrecisionRecallCurve(Metric):
tensor([0.0000, 0.5000, 1.0000])]
"""

TPs: Tensor
FPs: Tensor
FNs: Tensor
thresholds: Tensor

def __init__(
self,
num_classes: int,
Expand Down Expand Up @@ -165,7 +160,7 @@ def compute(self) -> Tuple[Tensor, Tensor, Tensor]:
precisions = torch.cat([
precisions, torch.ones(self.num_classes, 1, dtype=precisions.dtype, device=precisions.device)
],
dim=1)
dim=1)
recalls = torch.cat([recalls,
torch.zeros(self.num_classes, 1, dtype=recalls.dtype, device=recalls.device)],
dim=1)
Expand Down

0 comments on commit 6c3ec24

Please sign in to comment.