浏览代码

Merge pull request #3635 from Unity-Technologies/sanitize-gauge-names

sanitize gauge names
/bug-failed-api-check
GitHub 5 年前
当前提交
b5cd91ba
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      ml-agents/mlagents/trainers/stats.py

5
ml-agents/mlagents/trainers/stats.py


self, category: str, values: Dict[str, StatsSummary], step: int
) -> None:
for val, stats_summary in values.items():
set_gauge(f"{category}.{val}.mean", float(stats_summary.mean))
set_gauge(
GaugeWriter.sanitize_string(f"{category}.{val}.mean"),
float(stats_summary.mean),
)
class ConsoleWriter(StatsWriter):

正在加载...
取消
保存