浏览代码

Add comments

/MLA-1734-demo-provider
Arthur Juliani 4 年前
当前提交
2b0b4f73
共有 3 个文件被更改,包括 13 次插入0 次删除
  1. 1
      com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs
  2. 4
      com.unity.ml-agents/Runtime/Sensors/ITypedSensor.cs
  3. 8
      ml-agents-envs/mlagents_envs/base_env.py

1
com.unity.ml-agents/Runtime/Communicator/GrpcExtensions.cs


}
observationProto.Shape.AddRange(shape);
// Add the observation type, if any, to the observationProto
var typeSensor = sensor as ITypedSensor;
if (typeSensor != null)
{

4
com.unity.ml-agents/Runtime/Sensors/ITypedSensor.cs


/// </summary>
internal enum ObservationType
{
// Collected observations are generic.
// Collected observations contain goal information.
// Collected observations contain reward information.
// Collected observations are messages from other agents.
Message = 3,
}

8
ml-agents-envs/mlagents_envs/base_env.py


class ObservationType(Enum):
'''
An Enum which defines the type of information carried in the observation
of the agent.
'''
# Observation information is generic.
# Observation contains goal information for current task.
# Observation contains reward information for current task.
# Observation contains a message from another agent.
MESSAGE = 3

正在加载...
取消
保存