Example #1
0
 def _make_env():
     env = gym.make(config['env.id'])
     env = env.env  # strip out gym TimeLimit, TODO: remove until gym update it
     env = TimeLimit(env, env.spec.max_episode_steps)
     if config['env.clip_action'] and isinstance(env.action_space, Box):
         env = ClipAction(env)
     return env
Example #2
0
 def _make_env():
     env = gym.make(config['env.id'])
     env = env.env  # strip out gym TimeLimit, TODO: remove until gym update it
     env = TimeLimit(env, env.spec.max_episode_steps)
     env = ClipAction(env)
     return env