mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 07:34:30 +08:00
dc7a555260
* Added histogram functionality to custom metrics infrastructure (another tab in tensorboard) * updated example to include histogram metric * added histograms to TBXLogger * add episode rewards * lint Co-authored-by: Eric Liang <ekhliang@gmail.com>
9 lines
290 B
Python
9 lines
290 B
Python
import collections
|
|
|
|
# Define this in its own file, see #5125
|
|
RolloutMetrics = collections.namedtuple("RolloutMetrics", [
|
|
"episode_length", "episode_reward", "agent_rewards", "custom_metrics",
|
|
"perf_stats", "hist_data"
|
|
])
|
|
RolloutMetrics.__new__.__defaults__ = (0, 0, {}, {}, {}, {})
|