September 2018
Intermediate to advanced
296 pages
9h 10m
English
At each step of the cart and pole, several variables can be observed, such as the position, velocity, angle, and angular velocity. The possible state_values of the cart are moved right and left:
import gymimport numpy as npimport randomimport math
environment = gym.make('CartPole-v0')
no_buckets = (1, 1, 6, 3)no_actions = environment.action_space.n
Read now
Unlock full access