Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate auto mode from ModelCheckpoint and EarlyStopping #4695

Merged
merged 14 commits into from
Dec 4, 2020
Prev Previous commit
Next Next commit
mode
  • Loading branch information
rohitgr7 authored and Borda committed Dec 4, 2020
commit dbce63bb87f99d855433a1a42bf285d126248f3c
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/early_stopping.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init_monitor_mode(self):
if self.mode not in self.mode_dict and self.mode != 'auto':
if self.verbose > 0:
rank_zero_warn(
f'EarlyStopping mode {mode} is unknown, fallback to auto mode.',
f'EarlyStopping mode={self.mode} is unknown, fallback to auto mode.',
RuntimeWarning,
)
self.mode = 'auto'
Expand Down