浏览代码

[change] Change warning language when adversarial scene is used without self-play (#3561)

/bug-failed-api-check
GitHub 5 年前
当前提交
cb153a0f
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3
      ml-agents/mlagents/trainers/ppo/trainer.py
  2. 3
      ml-agents/mlagents/trainers/sac/trainer.py

3
ml-agents/mlagents/trainers/ppo/trainer.py


"""
if self.policy:
logger.warning(
"add_policy has been called twice. {} is not a multi-agent trainer".format(
"Your environment contains multiple teams, but {} doesn't support adversarial games. Enable self-play to \
train adversarial games.".format(
self.__class__.__name__
)
)

3
ml-agents/mlagents/trainers/sac/trainer.py


"""
if self.policy:
logger.warning(
"add_policy has been called twice. {} is not a multi-agent trainer".format(
"Your environment contains multiple teams, but {} doesn't support adversarial games. Enable self-play to \
train adversarial games.".format(
self.__class__.__name__
)
)

正在加载...
取消
保存