LogStatsConsumer¶
- 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[LogStatsKey, 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.
- Parameters:
stat – The statistics dictionary