July 2018
Intermediate to advanced
254 pages
8h 12m
English
In just a minute or two, you have created an instance of an OpenAI Gym environment to get started!
Let's open a new Python promptand import the gym module:
>>import gym
Once the gym module is imported, we can use the gym.make method to create our new environment like this:
>>env = gym.make('CartPole-v0')>>env.reset()env.render()
This will bring up a window like this:
Hooray!
Read now
Unlock full access