MuJoco HalfCheetah的状态空间范围

时间:2019-06-04 05:23:03

标签: python deep-learning reinforcement-learning openai-gym

我一直在尝试确定MuJoCo的Half Cheetah环境中每个功能的范围。我能找到的唯一相关信息是the xml file。有谁知道在状态特征向量中每个特征的最大值和最小值在哪里?

1 个答案:

答案 0 :(得分:0)

调用file时,observation_space已在此line中设置(对于HalfCheetah env)

要检查任何环境的observation_space

import gym
env = gym.make('CartPole-v0') # change the env name here
print('Max of observation_space:',env.observation_space.high)
print('Min of observation_space:',env.observation_space.low)

输出:

Max of observation_space: [4.8000002e+00 3.4028235e+38 4.1887903e-01 3.4028235e+38]
Min of observation_space: [-4.8000002e+00 -3.4028235e+38 -4.1887903e-01 -3.4028235e+38]