class maze.core.log_stats.log_stats.LogStatsConsumer

An interface to receive log statistics. Implemented by the LogStatAggregator class to receive logs from the subjacent aggregator.

abstract receive(stat: Dict[maze.core.log_stats.log_stats.LogStatsKey, Union[int, float, numpy.ndarray, dict]])

Receive a statistics object from an aggregator. This might be called multiple times in case we consume statistics from multiple LogStatAggregator objects.


stat – The statistics dictionary