Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki committed Oct 8, 2024
1 parent 8c3b28c commit f96cdef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/regression/concordance.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def concordance_corrcoef(preds: Tensor, target: Tensor) -> Tensor:
>>> target = torch.tensor([3, -0.5, 2, 7])
>>> preds = torch.tensor([2.5, 0.0, 2, 8])
>>> concordance_corrcoef(preds, target)
tensor([0.9796])
tensor([0.9777])
Example (multi output regression):
>>> from torchmetrics.functional.regression import concordance_corrcoef
Expand Down
2 changes: 1 addition & 1 deletion src/torchmetrics/regression/concordance.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ConcordanceCorrCoef(PearsonCorrCoef):
>>> preds = tensor([2.5, 0.0, 2, 8])
>>> concordance = ConcordanceCorrCoef()
>>> concordance(preds, target)
tensor(0.9796)
tensor(0.9777)
Example (multi output regression):
>>> from torchmetrics.regression import ConcordanceCorrCoef
Expand Down

0 comments on commit f96cdef

Please sign in to comment.