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

Method on_batch_end

tensorflow/python/keras/callbacks.py:948–954  ·  view source on GitHub ↗
(self, batch, logs=None)

Source from the content-addressed store, hash-verified

946 del self.model._training_state
947
948 def on_batch_end(self, batch, logs=None):
949 logs = logs or {}
950 if isinstance(self.save_freq, int):
951 self._samples_seen_since_last_saving += logs.get('size', 1)
952 if self._samples_seen_since_last_saving >= self.save_freq:
953 self._save_model(epoch=self._current_epoch, logs=logs)
954 self._samples_seen_since_last_saving = 0
955
956 def on_epoch_begin(self, epoch, logs=None):
957 self._current_epoch = epoch

Callers

nothing calls this directly

Calls 2

_save_modelMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected