ray.rllib.utils.metrics.metrics_logger.MetricsLogger.reduce#
- MetricsLogger.reduce(compile: bool = False) Dict[source]#
Reduces all logged values based on their settings and returns a result dict.
Note to user: Do not call this method directly! This should be called only by RLlib when aggregating stats.
- Parameters:
compile – If True, the result is compiled into a single value if possible. If it is not possible, the result is a list of values. If False, the result is a list of one or more values.
- Returns:
A dict containing all ever logged nested keys to this MetricsLogger with the leafs being the reduced stats.