浏览代码

remove timepenalty obs

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

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


m_Name:
m_EditorClassIdentifier:
m_BrainParameters:
vectorObservationSize: 11
vectorObservationSize: 10
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)

正在加载...
取消
保存