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
gym-cartpole-swingup-0.1.4.tar.gz
(18.0 kB
view hashes)
Built Distribution
Close
Hashes for gym-cartpole-swingup-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bacd517ec68ec196c7c2875b93cd9a3990b50b1030af93e709b7f06f47304c0 |
|
MD5 | d5739fa76719c7047caa98a38f6260c6 |
|
BLAKE2b-256 | c043a2f2284c6eca0ac0c6769eb0ee18eb3deea5492b6379ac07686aabe15849 |
Close
Hashes for gym_cartpole_swingup-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00e4ec990622159531121fb2ada95e33ebc85011f876734309d3d82219f10b69 |
|
MD5 | 349b0b514929f89ee48e19aa6fa98cb0 |
|
BLAKE2b-256 | a19db9e8a07e30fa66c0debe55df59128052dc38cd756732d98f67a8a940df92 |