iteration_statistics.IterationStatistics
Class IterationStatistics
A class for storing iteration-specific metrics.
The internal format is as follows: we maintain a mapping from keys to lists.
Each list contains all the values corresponding to the given key.
For example, self.data_lists[‘train_episode_returns’] might contain the
per-episode returns achieved during this iteration.
Attributes:
data_lists
: dict mapping each metric_name (str) to a list of said
metric across episodes.
Methods
init
__init__()
append
append(data_pairs)
Add the given values to their corresponding key-indexed lists.
Args:
data_pairs
: A dictionary of key-value pairs to be recorded.