Skip to content

Commit

Permalink
added reset method to pearson
Browse files Browse the repository at this point in the history
  • Loading branch information
avantikalal committed Jul 24, 2024
1 parent f349d29 commit aca0bc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/grelu/lightning/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,6 @@ def compute(self) -> torch.Tensor:
return output.mean()
else:
return output

def reset(self) -> None:
self.pearson.reset()

0 comments on commit aca0bc3

Please sign in to comment.