Skip to main content

A simplified version of Cliffworld in an OpenAI Gym Environment

Project description

gym-simple-cliffworld

A simplified version of Cliffworld in an OpenAI Gym Environment.

This is a project by Winder Research, a Cloud-Native Data Science consultancy.

Installation

pip install gym-simple-cliffworld

Usage

import gym
import gym_simple_cliffworld

env = gym.make("SimpleCliffworld-v0")
episode_over = False
rewards = 0
while not episode_over:
    state, reward, episode_over, _ = env.step(env.action_space.sample())
    print(state, reward)
    rewards += reward
print("Total reward: {}".format(rewards))

Credits

Gitlab icon made by Payungkead from www.flaticon.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gym-simple-cliffworld-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

gym_simple_cliffworld-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gym-simple-cliffworld-0.1.0.tar.gz.

File metadata

  • Download URL: gym-simple-cliffworld-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.7 Linux/4.19.78-coreos

File hashes

Hashes for gym-simple-cliffworld-0.1.0.tar.gz
Algorithm Hash digest
SHA256 90639280554ad9b576b38f4ff7dd09f600c81c2649149545417ba829c5b423a7
MD5 ec8e4f17960da71dc7460366a333dd81
BLAKE2b-256 879d9a2978d8bfbfcc2e3b8f34e5cd04547a34b077338317205cc90a7194bde6

See more details on using hashes here.

File details

Details for the file gym_simple_cliffworld-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for gym_simple_cliffworld-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 237be1c7ecff7779eecf1166efae7fec3ed0b840b6d593ce6455776b1fcae47b
MD5 f9ecb9005e936e445392bb04f0835a1d
BLAKE2b-256 a197766c1e6895e48886bf408d3d00dadec6b431544ade5b98693a98e543a3f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page