A simple, continuous-control environment for OpenAI Gym
Project description
gym-cartpole-swingup
A simple, continuous-control environment for OpenAI Gym
Installation
pip install gym-cartpole-swingup
Usage example
# coding: utf-8
import gym
import gym_cartpole_swingup
# Could be one of:
# CartPoleSwingUp-v0, CartPoleSwingUp-v1
# If you have PyTorch installed:
# TorchCartPoleSwingUp-v0, TorchCartPoleSwingUp-v1
env = gym.make("CartPoleSwingUp-v0")
done = False
while not done:
action = env.action_space.sample()
obs, rew, done, info = env.step(action)
env.render()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for gym-cartpole-swingup-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b4d4c5b40fa71ce070cc982ab8e055f046ed6c249583b39aa9b2ee970ec1e3 |
|
MD5 | da6feca8757bf9c30ede7878da3e8b2f |
|
BLAKE2b-256 | 547c7cb2b8418b1c181dcba314827ba46a7a605f8eb448d9765497eac7a8366a |