Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Jul 14, 2021
1 parent 5a00ed3 commit 382a57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchmetrics/functional/regression/r2.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,5 +167,5 @@ def r2score(
>>> r2score(preds, target, multioutput='raw_values')
tensor([0.9654, 0.9082])
"""
warn("`kldivergence` was renamed as `kl_divergence` in v0.5 and it will be removed in v0.6", DeprecationWarning)
warn("`r2score` was renamed as `r2_score` in v0.5 and it will be removed in v0.6", DeprecationWarning)
return r2_score(preds, target, adjusted, multioutput)

0 comments on commit 382a57f

Please sign in to comment.