carate.logging package

Submodules

carate.logging.metrics_logger module

class carate.logging.metrics_logger.MetricsLogger(save_dir: str)[source]

Bases: object

The class implements the Logger factory for basic metrics used in ML and deep Learning

Author:

Julian M. Kleber

basic_layout(metric: str, value: str) str[source]

Defines the basic logging layout for the MetricsLogger

Param:

metric: str: Name of the metric

ParaM:

value: str: Value of the metric

Author:

Julian M. Kleber

close_logger() None[source]

To limit logging to one file for multi run experiments the function closes the current logging file.

Author:

Julian M. Kleber

log(metrics: Dict[str, Any], level: str = 'info') None[source]

Logs the metrics using the self.logger.

Module contents