Skip to content

Commit

Permalink
fix sign error in early_stopping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ESEberhard authored and cw-tan committed Feb 20, 2025
1 parent 6891444 commit 8de03ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nequip/train/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __call__(self, metrics) -> None:
if minimum is None:
self.minimums[key] = value
elif value >= (minimum - delta):
if not self.cumulative_delta and value > minimum:
if not self.cumulative_delta and value < minimum:
self.minimums[key] = value
self.counters[key] += 1
debug_args = f"EarlyStopping: {self.counters[key]} / {pat}"
Expand Down

0 comments on commit 8de03ea

Please sign in to comment.