I want to make FrozenLake-v0 work as deterministic problem, so want to set variable is_slippery=False.
How can I set it to False while initialing the environment?
Reference to code
You should register an environment with a different name and the kwargs you want, something like:
from gym.envs.registration import register
register(
id='FrozenLakeNotSlippery-v0',
entry_point='gym.envs.toy_text:FrozenLakeEnv',
kwargs={'map_name' : '4x4', 'is_slippery': False},
max_episode_steps=100,
reward_threshold=0.78, # optimum = .8196
)
Thanks, that works!
You can simply do,
env = gym.make('FrozenLake-v0', is_slippery=False)
You can simply do,
env = gym.make('FrozenLake-v0', is_slippery=False)
Thank you
Most helpful comment
You should register an environment with a different name and the kwargs you want, something like: