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

Method reset_metrics

tensorflow/python/keras/engine/training.py:910–918  ·  view source on GitHub ↗

Resets the state of metrics.

(self)

Source from the content-addressed store, hash-verified

908 use_multiprocessing=use_multiprocessing)
909
910 def reset_metrics(self):
911 """Resets the state of metrics."""
912 metrics = self._get_training_eval_metrics()
913 for m in metrics:
914 m.reset_states()
915
916 # Reset metrics on all the distributed (cloned) models.
917 if self._distribution_strategy:
918 distributed_training_utils._reset_metrics(self) # pylint: disable=protected-access
919
920 def train_on_batch(self,
921 x,

Callers 9

train_on_batchMethod · 0.95
test_on_batchMethod · 0.95
model_iterationFunction · 0.80
model_iterationFunction · 0.80
train_on_batchFunction · 0.80
test_on_batchFunction · 0.80
fitMethod · 0.80
_model_iterationMethod · 0.80
_reset_metricsFunction · 0.80

Calls 2

reset_statesMethod · 0.45

Tested by 2

test_on_batchMethod · 0.76
test_on_batchFunction · 0.64