浏览代码

Fix warning message format

/develop/coma2/fixgroup
Ervin Teng 4 年前
当前提交
252c1f36
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ml-agents/mlagents/trainers/coma/optimizer_torch.py

4
ml-agents/mlagents/trainers/coma/optimizer_torch.py


for reward_signal, settings in reward_signal_configs.items():
if reward_signal != RewardSignalType.EXTRINSIC:
logger.warning(
f"Reward Signal {reward_signal.value} is not supported with the COMA2 trainer; \
results may be unexpected."
f"Reward Signal {reward_signal.value} is not supported with the COMA2 trainer; "
"results may be unexpected."
)
elif isinstance(settings, ExtrinsicSettings):
settings.add_groupmate_rewards = True

正在加载...
取消
保存