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

Method metrics_names

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

Returns the model's display labels for all outputs.

(self)

Source from the content-addressed store, hash-verified

416
417 @property
418 def metrics_names(self):
419 """Returns the model's display labels for all outputs."""
420 metrics_names = ['loss']
421 if self._is_compiled:
422 # Add output loss metric names to the metric names list.
423 if len(self._training_endpoints) > 1:
424 metrics_names.extend([
425 e.loss_name()
426 for e in self._training_endpoints
427 if not e.should_skip_target()
428 ])
429
430 # Add compile metrics/weighted metrics' names to the metric names list.
431 metrics_names.extend([m.name for m in self._compile_metric_functions])
432
433 # Add metric names from layers.
434 for layer in self.layers:
435 metrics_names += [m.name for m in layer._metrics] # pylint: disable=protected-access
436 metrics_names += [m.name for m in self._metrics]
437 return metrics_names
438
439 @property
440 def run_eagerly(self):

Callers

nothing calls this directly

Calls 3

loss_nameMethod · 0.80
should_skip_targetMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected