ray.rllib.utils.metrics.metrics_logger.MetricsLogger.delete#
- MetricsLogger.delete(*key: Tuple[str, ...], key_error: bool = True) None[source]#
Deletes the given
keyfrom 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
keycannot be found inself.
- Raises:
KeyError – If
keycannot be found inselfANDkey_erroris True.