Change game parameters


#1

I want to try to game parameters of pre-defined game. Say Cart-pole-v0. So the ones mentioned here:

But I am sure what’s happening? I created an env:

In [4]: env = gym.make('CartPole-v0')
[2017-08-28 02:40:38,170] Making new env: CartPole-v0   

I did a dir on it, I didn’t find them:

In [5]: dir(env)
Out[5]:
[‘class’,
del’,
delattr’,
dict’,
doc’,
format’,
getattribute’,
hash’,
init’,
module’,
new’,
reduce’,
reduce_ex’,
repr’,
setattr’,
sizeof’,
str’,
subclasshook’,
weakref’,
’_close’,
’_closed’,
’_elapsed_seconds’,
’_elapsed_steps’,
’_ensure_no_double_wrap’,
’_env_closer_id’,
’_episode_started_at’,
’_max_episode_seconds’,
’_max_episode_steps’,
’_owns_render’,
’_past_limit’,
’_render’,
’_reset’,
’_seed’,
’_step’,
‘action_space’,
‘class_name’,
‘close’,
‘configure’,
‘env’,
‘metadata’,
‘monitor’,
‘observation_space’,
‘render’,
‘reset’,
‘reward_range’,
‘seed’,
‘spec’,
‘step’,
‘unwrapped’]

But env.env works:
In [9]: dir(env.env)
Out[9]:
[‘class’,
del’,
delattr’,
dict’,
doc’,
format’,
getattribute’,
hash’,
init’,
module’,
new’,
reduce’,
reduce_ex’,
repr’,
setattr’,
sizeof’,
str’,
subclasshook’,
weakref’,
’_close’,
’_closed’,
’_env_closer_id’,
’_owns_render’,
’_render’,
’_reset’,
’_seed’,
’_step’,
‘action_space’,
‘close’,
‘configure’,
‘force_mag’,
‘gravity’,
‘length’,
‘masscart’,
‘masspole’,
‘metadata’,
‘monitor’,
‘np_random’,
‘observation_space’,
‘polemass_length’,
‘render’,
‘reset’,
‘reward_range’,
‘seed’,
‘spec’,
‘state’,
‘step’,
‘steps_beyond_done’,
‘tau’,
‘theta_threshold_radians’,
‘total_mass’,
‘unwrapped’,
‘viewer’,
‘x_threshold’]
why?