Skip to content

Commit

Permalink
Fix potential typo in early stopping monitor keys (#3213)
Browse files Browse the repository at this point in the history
* Fix typo

* ref: group prepare data hook (6) (#3212)

* group prepare data hook

* group prepare data hook

* group prepare data hook

* group prepare data hook

* group prepare data hook

* group prepare data hook

* group prepare data hook

* Fix typo

Co-authored-by: William Falcon <waf2107@columbia.edu>
  • Loading branch information
minhduc0711 and williamFalcon committed Aug 27, 2020
1 parent 464a0e7 commit 4d98419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def on_train_epoch_end(self, trainer, pl_module):

def __warn_deprecated_monitor_key(self):
using_result_obj = os.environ.get('PL_USING_RESULT_OBJ', None)
invalid_key = self.monitor not in ['val_loss', 'early_stop_on', 'val_early_step_on', 'loss']
invalid_key = self.monitor not in ['val_loss', 'early_stop_on', 'val_early_stop_on', 'loss']
if using_result_obj and not self.warned_result_obj and invalid_key:
self.warned_result_obj = True
m = f"""
Expand Down

0 comments on commit 4d98419

Please sign in to comment.