Returns the model's display labels for all outputs.
(self)
| 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): |
nothing calls this directly
no test coverage detected