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.3.tar.gz
(18.1 kB
view hashes)
Built Distribution
Close
Hashes for gym-cartpole-swingup-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22a6a82dd1b450d184a9a5f0c8a765e1ba85532eab5f8a3c3d55ba5a3161d59 |
|
MD5 | 934bfd41986ea118d788bd4e2e372b7e |
|
BLAKE2b-256 | f790e3821bdb9c7d83ec1e458467a339f5d580aef9ae5770dc7ce5dceb78887c |
Close
Hashes for gym_cartpole_swingup-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8231893db544d14ce58d76b0a865b41a4e115b78465718845e4f0e011e27bfe2 |
|
MD5 | 7264334f3268e58ba4633e4d03d332ff |
|
BLAKE2b-256 | d354015c042d684d550abbb95b279b32ef74b9bfb04064ad19bc56d3d3e838e2 |