浏览代码

remove time bonus loss

/asymm-envs
Andrew Cohen 5 年前
当前提交
443935f4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs

4
Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs


void AgentAWins()
{
m_AgentA.SetReward(1 + m_AgentA.timePenalty);
m_AgentB.SetReward(-1 - m_AgentB.timePenalty);
m_AgentB.SetReward(-1);
m_AgentA.score += 1;
Reset();

{
m_AgentA.SetReward(-1 - m_AgentA.timePenalty);
m_AgentA.SetReward(-1);
m_AgentB.SetReward(1 + m_AgentB.timePenalty);
m_AgentB.score += 1;
Reset();

正在加载...
取消
保存