fixed warning

This commit is contained in:
William Falcon
2020-04-26 12:53:42 -04:00
parent a258d3d31b
commit 9020cf91b5
@@ -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: