def log_metrics(
        self,
        metrics: Dict[str, float],
        scope: str,
        runner: "IRunner",
    ) -> None:
        """Logs loader and epoch metrics to stdout."""
        if scope == "loader":
            prefix = f"{runner.loader_key} ({runner.epoch_step}/{runner.num_epochs}) "
            msg = prefix + _format_metrics(metrics)
            print(msg)
        elif scope == "epoch":
            # @TODO: remove trick to save pure epoch-based metrics, like lr/momentum
            prefix = f"* Epoch ({runner.epoch_step}/{runner.num_epochs}) "
            msg = prefix + _format_metrics(metrics["_epoch_"])
            print(msg)
Logs loader and epoch metrics to stdout.
catalyst/loggers/console.py