January 2020
Intermediate to advanced
346 pages
9h 8m
English
To create an environment, we need to use the make() method and the name of the desired environment, as follows:
env = gym.make('MountainCar-v0')
Detailed information about the available environments is available at the following links:
Once the environment has been created, it can be initialized using the reset() method, as shown in the following code snippet:
observation = env.reset()
This method returns an observation object, describing the initial state of the environment. The content of the observation is environment-dependent.
Conforming with the reinforcement learning cycle that we described in the previous subsection, t
Read now
Unlock full access