浏览代码

fixed reset tennis

/asymm-envs
Andrew Cohen 5 年前
当前提交
69acdeec
共有 3 个文件被更改,包括 9 次插入8 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/HitWall.cs
  2. 9
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs
  3. 4
      config/trainer_config.yaml

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


void Reset()
{
m_AgentA.EndEpisode();
m_Area.MatchReset();
m_AgentA.EndEpisode();
//m_Area.MatchReset();
}
void AgentAWins()

9
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


energyPenalty = 0;
m_BallTouch = SideChannelUtils.GetSideChannel<FloatPropertiesChannel>().GetPropertyWithDefault("ball_touch", 0);
m_InvertMult = invertX ? -1f : 1f;
if (m_InvertMult == 1f)
{
m_Area.MatchReset();
}
if (m_InvertMult == 1f)
{
m_Area.MatchReset();
}
}
public void SetRacket()

4
config/trainer_config.yaml


beta: 1.0e-2
time_horizon: 1000
self_play:
window: 50
window: 10
swap_steps: 10000
swap_steps: 50000
team_change: 100000
Goalie:

正在加载...
取消
保存