openai gym random action
# load gym envirolment
import gym
env = gym.make('CartPole-v0')
env.reset()
for _ in range(300):
env.render()
env.step(env.action_space.sample()) # take a random action
env.close()
openai gym random action
# load gym envirolment
import gym
env = gym.make('CartPole-v0')
env.reset()
for _ in range(300):
env.render()
env.step(env.action_space.sample()) # take a random action
env.close()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us