Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
env = make_vec_env(_make_env, 1, seed) # single environment
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
env = make_vec_env(_make_env, 1, seed) # single environment
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
env = make_vec_env(_make_env, 1, seed) # single environment
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
env = make_vec_env(_make_env, 1, seed) # single environment
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.time_aware_obs']:
env = TimeAwareObservation(env)
if config['env.clip_action'] and isinstance(env.action_space, Box):
env = ClipAction(env)
return env
env = make_vec_env(_make_env, 1, seed, 'serial') # single environment
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
env = make_vec_env(_make_env, 1, seed) # single environment
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
env = make_vec_env(_make_env, 1, seed) # single environment