浏览代码

set team reward

/MLA-1734-demo-provider
Ruo-Ping Dong 4 年前
当前提交
38621840
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      com.unity.ml-agents/Runtime/Agent.cs

4
com.unity.ml-agents/Runtime/Agent.cs


}
m_Info.episodeId = m_EpisodeId;
m_Info.reward = m_Reward;
m_Info.teamReward = m_TeamReward;
m_Info.done = true;
m_Info.maxStepReached = doneReason == DoneReason.MaxStepReached;
m_Info.teamManagerId = m_TeamManager == null ? -1 : m_TeamManager.GetId();

}
m_Reward = 0f;
m_TeamReward = 0f;
m_CumulativeReward = 0f;
m_RequestAction = false;
m_RequestDecision = false;

m_Info.discreteActionMasks = m_ActuatorManager.DiscreteActionMask?.GetMask();
m_Info.reward = m_Reward;
m_Info.teamReward = m_TeamReward;
m_Info.done = false;
m_Info.maxStepReached = false;
m_Info.episodeId = m_EpisodeId;

{
SendInfoToBrain();
m_Reward = 0f;
m_TeamReward = 0f;
m_RequestDecision = false;
}
}

正在加载...
取消
保存