SHARE
TWEET

Untitled

a guest Oct 18th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import gym
  2. from prl.agents import RandomAgent
  3. from prl.environments.environments import Environment
  4. from prl.utils import time_logger
  5.  
  6. gym_env = gym.make("CartPole-v0")
  7. env = Environment(gym_env, expected_episode_length=200)
  8. agent = RandomAgent()
  9. agent.train(env, 100)
  10. print(time_logger)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top