MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_monitor_value

Method get_monitor_value

tensorflow/python/keras/callbacks.py:1249–1256  ·  view source on GitHub ↗
(self, logs)

Source from the content-addressed store, hash-verified

1247 print('Epoch %05d: early stopping' % (self.stopped_epoch + 1))
1248
1249 def get_monitor_value(self, logs):
1250 logs = logs or {}
1251 monitor_value = logs.get(self.monitor)
1252 if monitor_value is None:
1253 logging.warning('Early stopping conditioned on metric `%s` '
1254 'which is not available. Available metrics are: %s',
1255 self.monitor, ','.join(list(logs.keys())))
1256 return monitor_value
1257
1258
1259@keras_export('keras.callbacks.RemoteMonitor')

Callers 1

on_epoch_endMethod · 0.95

Calls 3

getMethod · 0.45
joinMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected