浏览代码

raise warning when latest_model_ratio not btwn 0, 1

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

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


self.play_against_latest_model_ratio = self_play_parameters.get(
"play_against_latest_model_ratio", 0.5
)
if (
self.play_against_latest_model_ratio > 1.0
or self.play_against_latest_model_ratio < 0.0
):
logger.warning(
"The play_against_latest_model_ratio is not between 0 and 1."
)
self.steps_between_save = self_play_parameters.get("save_steps", 20000)
self.steps_between_swap = self_play_parameters.get("swap_steps", 20000)
self.steps_to_train_team = self_play_parameters.get("team_change", 100000)

正在加载...
取消
保存