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

MetricsLogger.delete(*key: Tuple[str, ...], key_error: bool = True) None[source]#

Deletes the given key from this metrics logger’s stats.

Parameters:
  • key – The key or key sequence (for nested location within self.stats), to delete from this MetricsLogger’s stats.

  • key_error – Whether to throw a KeyError if key cannot be found in self.

Raises:

KeyError – If key cannot be found in self AND key_error is True.