Skip to content

Commit

Permalink
Merge pull request #4 from wolframalpha/master
Browse files Browse the repository at this point in the history
Update pytorchtools.py
  • Loading branch information
Bjarten authored Aug 27, 2019
2 parents 36cff88 + 780b1dc commit effbcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorchtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __call__(self, val_loss, model):
if self.best_score is None:
self.best_score = score
self.save_checkpoint(val_loss, model)
elif score < self.best_score - delta:
elif score < self.best_score - self.delta:
self.counter += 1
print(f'EarlyStopping counter: {self.counter} out of {self.patience}')
if self.counter >= self.patience:
Expand Down

0 comments on commit effbcce

Please sign in to comment.