浏览代码

comment for self.ghost_step

/develop/cubewars
Andrew Cohen 5 年前
当前提交
15770bec
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      ml-agents/mlagents/trainers/ghost/trainer.py

4
ml-agents/mlagents/trainers/ghost/trainer.py


)
self.steps_between_save = self_play_parameters.get("save_steps", 20000)
self.steps_between_swap = self_play_parameters.get("swap_steps", 20000)
# Counts the The number of steps of the ghost policies. Snapshot swapping
# depends on this counter whereas snapshot saving and team switching depends
# on the wrapped. This ensures that all teams train for the same number of trainer
# steps.
self.ghost_step: int = 0
# A list of dicts from brain name to a single snapshot for this trainer's policies

正在加载...
取消
保存