浏览代码

Don't delete when agents don't die

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

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


if trajectory.done_reached:
self._update_end_episode_stats(agent_id, self.optimizer)
# Remove dead agents from group reward recording
self.collected_group_rewards.pop(agent_id)
if not trajectory.all_group_dones_reached:
self.collected_group_rewards.pop(agent_id)
# If the whole team is done, average the remaining group rewards.
if trajectory.all_group_dones_reached:

正在加载...
取消
保存