Skip to content

Commit

Permalink
modify earlystop
Browse files Browse the repository at this point in the history
  • Loading branch information
Deeachain committed Sep 6, 2020
1 parent 0799136 commit 6bb78de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/earlyStopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def monitor(self, monitor):

if self.best_score is None:
self.best_score = score
elif score >= self.best_score + self.delta:
elif score <= self.best_score + self.delta:
self.counter += 1
if self.counter >= self.patience:
self.early_stop = True
Expand Down

0 comments on commit 6bb78de

Please sign in to comment.