Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 8, 2024
1 parent 370a9e4 commit b697de6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/torchmetrics/text/infolm.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ def __init__(

@property
def higher_is_better(self) -> bool:
"""
Returns a bool indicating whether a higher value of the information measure is better.
"""Returns a bool indicating whether a higher value of the information measure is better.
Done this way as depends on if the information measure is positive or negative.
"""
return _Information_Measure_Higher_Is_Better[self.information_measure]

Expand Down

0 comments on commit b697de6

Please sign in to comment.