Skip to main content

A collection of RL environments

Project description

RL Enviros

RL Enviros is a collection of custom environments compatible with Gymnasium, designed to simulate various games and scenarios for reinforcement learning experiments. This project aims to provide a variety of environments to help researchers and enthusiasts develop and test reinforcement learning algorithms.

Table of Contents

Installation

PyPi

You can install the rlate-env package directly from PyPi:

pip install rlate-env

Environments

PickHigh

PickHigh is a simple game where the player picks between two cards, aiming to select the higher card. This environment is useful for testing basic reinforcement learning algorithms.

  • Observation Space: Discrete space of size 100, representing two cards (e.g., 34 for left card 3 and right card 4).
  • Action Space: Discrete space of size 2. Action 0 selects the left card, and action 1 selects the right card.
  • Reward:
    • +1 if the chosen card is higher.
    • 0 if both cards are the same.
    • -1 if the chosen card is lower.
  • Episode Termination: The episode terminates when the player picks a card that is different from the dealer's card.

Detailed Documentation for PickHigh

Usage

Here is an example of how to use the PickHigh environment:

import gymnasium_rlate as rlate

# Create the Canon environment
env = rlate.Cannon()

# Reset the environment
obs, info = env.reset()
print(obs)

# Make a step in the environment
obs, reward, terminated, truncated, _ = env.step(23.5)
print(obs, reward, terminated)


# Render the environment
print(env.render())

# Close the environment
env.close()

Contributing

Contributions are welcome! If you have an environment you'd like to add or an improvement to suggest, please open an issue or submit a pull request.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Repository

GitHub Repository: https://github.com/RLate-Space/RL-Enviros

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

rlate_env-0.0.10.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

rlate_env-0.0.10-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file rlate_env-0.0.10.tar.gz.

File metadata

  • Download URL: rlate_env-0.0.10.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for rlate_env-0.0.10.tar.gz
Algorithm Hash digest
SHA256 0fd55e69f3d1e48cbbbd81e5f86e4d3e6f0674467ccbc792b56fcf4951905849
MD5 4f2527d62f08af21dc31c4e085d99861
BLAKE2b-256 bf049f66d414013c690818627123723690706445512c39a70e44fc09b52cfd2e

See more details on using hashes here.

File details

Details for the file rlate_env-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: rlate_env-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for rlate_env-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c531ee61dfdcd2fa686baf287cbc2e40ced4468cc4e41105e46d0bcd3cc59f
MD5 f60459ac441e7c27cc9aeb935b5493d4
BLAKE2b-256 adeab3d9a836143b4b8c9a9414c7aacb760757e5ef58c1468643d12076b6fc9b

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