Skip to main content

No project description provided

Project description

Gymgrid

The gridworld environment contains simple environments in RL book and compatible with OpenAI-gym.

Installation

pip install gymgird

Usage

import gym
import gymgrid
env = env = gym.make('cliff-v0')
for i_episode in range(20):
    observation = env.reset()
    for t in range(100):
        env.render()
        print(observation)
        action = env.action_space.sample()
        observation, reward, done, info = env.step(action)
        if done:
            print("Episode finished after {} timesteps".format(t+1))
            break
env.close()
print("env closed")

Environments

  • Sample1
  • Sample2
  • Cliff: Example 6.5: Cliff Walking
  • WindyGridWorld: Exercise 6.9 Windy Gridworld with King's Moves

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

gymgrid-1.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

gymgrid-1.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gymgrid-1.1.0.tar.gz.

File metadata

  • Download URL: gymgrid-1.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for gymgrid-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c369f38f02a8f7e3777feaba68eafd5920583f503da9a113d318c2c23ee0ac4a
MD5 76ce918954bf33d58ec394880e141b69
BLAKE2b-256 19a64cfe6c88414440a866cec06bb20815751daa0304be4443e93d02ab1dbf1d

See more details on using hashes here.

File details

Details for the file gymgrid-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: gymgrid-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for gymgrid-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6330098e7ac7160130d8e7b6e7d42eee0e3d08e5f7a5cf3c6ba6152800f932b3
MD5 1da76a2960070192f43707d4fd5575aa
BLAKE2b-256 8cbef295e768e1a91a5cc45a913ddf532395aa45158aeec6f3ca7288b7c12075

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