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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbfdcb28a04d74128fe0a6a571a4feccceb0beb38b1e0bcf0fcb2ad02f58928c |
|
MD5 | 82362d1c8a04691461437d27660a8661 |
|
BLAKE2b-256 | 65ed50de864ba1b6650b11b87b05d7f436a9359deabb7a26f1b91c7cc31b0250 |