Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki committed Oct 12, 2024
1 parent 6043801 commit 2e6e5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/torchmetrics/regression/nrmse.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class NormalizedRootMeanSquaredError(Metric):
>>> import torch
>>> from torchmetrics import NormalizedRootMeanSquaredError
>>> target = tensor([2.5, 5.0, 4.0, 8.0])
>>> preds = tensor([3.0, 5.0, 2.5, 7.0])
>>> target = torch.tensor([2.5, 5.0, 4.0, 8.0])
>>> preds = torch.tensor([3.0, 5.0, 2.5, 7.0])
>>> nrmse = NormalizedRootMeanSquaredError(normalization="mean")
>>> nrmse(preds, target)
tensor(0.1919)
Expand Down

0 comments on commit 2e6e5e3

Please sign in to comment.