ray.rllib.utils.metrics.metrics_logger.MetricsLogger.reset#
- MetricsLogger.reset() None [source]#
Resets all data stored in this MetricsLogger.
from ray.rllib.utils.metrics.metrics_logger import MetricsLogger from ray.rllib.utils.test_utils import check logger = MetricsLogger() logger.log_value("a", 1.0) check(logger.peek("a"), 1.0) logger.reset() check(logger.reduce(), {})