ray.rllib.utils.metrics.metrics_logger.MetricsLogger.peek_results#

static MetricsLogger.peek_results(results: Any, compile: bool = True) Any[source]#

Performs peek() on any leaf element of an arbitrarily nested Stats struct.

Parameters:
  • results – The nested structure of Stats-leafs to be peek’d and returned.

  • compile – If True, the result is compiled into a single value if possible.

Returns:

A corresponding structure of the peek’d results (reduced float/int values; no Stats objects).