def log_metrics(logger, epoch, elapsed, tag, metrics):
    logger.info('\nEpoch {} - elapsed: {} - {} metrics:\n {}'.format(epoch, elapsed, tag, '\n'.join(['\t{}: {}'.format(k, v) for (k, v) in metrics.items()])))
def log_metrics(logger, epoch, elapsed, tag, metrics):
    logger.info('\nEpoch {} - elapsed: {} - {} metrics:\n {}'.format(epoch, elapsed, tag, '\n'.join(['\t{}: {}'.format(k, v) for (k, v) in metrics.items()])))