October 2018
Intermediate to advanced
472 pages
10h 57m
English
Just like we loaded the game in the DQN segment, we will load the game into the workspace and set seed for reproducibility:
env = gym.make('CartPole-v1')# set seed seed_val = 456env.seed(seed_val)np.random.seed(seed_val)states = env.observation_space.shape[0]actions = env.action_space.n
Read now
Unlock full access