mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
fixed warning
This commit is contained in:
@@ -80,8 +80,9 @@ class EarlyStopping(Callback):
|
||||
"""
|
||||
monitor_val = logs.get(self.monitor)
|
||||
error_msg = (f'Early stopping conditioned on metric `{self.monitor}`'
|
||||
f' which is not available. Available metrics are:'
|
||||
f' `{"`, `".join(list(logs.keys()))}`')
|
||||
f' which is not available. Either add `{self.monitor}` to the return of '
|
||||
f' validation_epoch end or modify your EarlyStopping callback to use any of the '
|
||||
f'following: `{"`, `".join(list(logs.keys()))}`')
|
||||
|
||||
if monitor_val is None:
|
||||
if self.strict:
|
||||
|
||||
Reference in New Issue
Block a user