Skip to main content

Easily create custom RL environments for Gymnasium

Project description

EasyRLEnv

Easily create custom RL environments with minimal boilerplate.

Installation

pip install easy-rl-env

Example

from easy_rl_env import EasyEnv

class MyCustomEnv(EasyEnv):
    def __init__(self):
        super().__init__(observation_shape=(4,), action_shape=(2,), discrete=True)

    def reset(self):
        self.state = [0, 0, 0, 0]
        return self.state, {}

    def step(self, action):
        reward = 1 if action == 0 else -1
        done = False
        return self.state, reward, done, {}

License

MIT

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

easy_rl_env-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_rl_env-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file easy_rl_env-0.1.0.tar.gz.

File metadata

  • Download URL: easy_rl_env-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for easy_rl_env-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44d14ae59b54c222587324243d236a97cae06966e17af8ebe7de8cce82fd7b71
MD5 5cd2aa72e17f69f346bc58e88db531cd
BLAKE2b-256 42f4d5d6f64256f837090accbaae391fb3374590db374c94ecba138c2f3a9498

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_rl_env-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for easy_rl_env-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 842ffb9c209b5d51571876a2ffa90e55a9bab2e87497e4dfe369a6f544b6e952
MD5 0d2c7ee1881c403c05168531395f886e
BLAKE2b-256 7173f44b909dd110a3d97722e45af4294b7cbeb2070a8d7ba85ca1119a2b51ea

See more details on using hashes here.

Supported by

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