浏览代码

Simpler solution

/goal-conditioning
Arthur Juliani 4 年前
当前提交
e8849803
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/GoalSensorComponent.cs

4
Project/Assets/ML-Agents/Examples/SharedAssets/Scripts/GoalSensorComponent.cs


public void AddOneHotGoal(int goal, int range)
{
for (var i = 0; i < range; i++)
if (goalSensor != null)
goalSensor.AddObservation(i == goal ? 1.0f : 0.0f);
goalSensor.AddOneHotObservation(goal, range);
}
}
}

正在加载...
取消
保存