pe.logger.log_print module
- class pe.logger.log_print.LogPrint(log_iteration_freq=1)[source]
Bases:
Logger
The logger that prints the metrics to the console/file using
pe.logging.execution_logger
.- __init__(log_iteration_freq=1)[source]
Constructor.
- Parameters:
log_iteration_freq (int, optional) – The frequency to log the metrics, defaults to 1
- log(iteration, metric_items)[source]
Log the metrics to the console/file.
- Parameters:
iteration (int) – The PE iteration number
metric_items (list[
pe.metric_item.FloatMetricItem
orpe.metric_item.FloatListMetricItem
]) – The metrics to log