get_stats_logger

class maze.core.log_stats.log_stats.get_stats_logger(path: str | None = None)

Creates an object that can be used to pipe LogStatAggregator instances with the logging writers.

Example usage: >>> logger = get_stats_logger(“eval”) >>> aggregator = LogStatsAggregator(LogStatsLevel.STEP, logger) >>> aggregator.reduce() # calculate the statistics and sent it to the registered logging writers

Parameters:

path – The optional path to prefix the logging tags

Returns: