浏览代码

added timepenalty to obs

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

4
Project/Assets/ML-Agents/Examples/Tennis/Prefabs/TennisArea.prefab


m_Name:
m_EditorClassIdentifier:
m_BrainParameters:
vectorObservationSize: 10
vectorObservationSize: 11
numStackedVectorObservations: 3
vectorActionSize: 03000000
vectorActionDescriptions: []

m_Name:
m_EditorClassIdentifier:
m_BrainParameters:
vectorObservationSize: 10
vectorObservationSize: 11
numStackedVectorObservations: 3
vectorActionSize: 03000000
vectorActionDescriptions: []

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


sensor.AddObservation(m_InvertMult * gameObject.transform.rotation.z);
sensor.AddObservation(System.Convert.ToInt32(m_BallScript.lastFloorHit == HitWall.FloorHit.FloorHitUnset));
sensor.AddObservation(-1 * timePenalty);
}
public override void OnActionReceived(float[] vectorAction)

正在加载...
取消
保存