March 2019
Intermediate to advanced
184 pages
4h 57m
English
The cartpole.py file from the previous exercise has been renamed to lunar.py. The changes that have been made are as follows. First, we set the maximum number of time steps per episode to 1000 for LunarLander, the discount factor to gamma = 0.999, and the state and action dimensions to 8 and 4, respectively:
max_episode_steps = 1000gamma = 0.999s_size = 8 a_size = 4
The environment is set to LunarLander-v2:
env = gym.make('LunarLander-v2')
That's it for the code changes for training A3C on LunarLander.
Read now
Unlock full access