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

  • Published on PyPi
  • You can install the rlate-env package directly from PyPi:
pip install rlate-env

Environments

Shuffler Arrange a shuffled list of numbers in ascending order by swapping with the number 5.

PickHigh Choose the higher-valued card from two randomly drawn cards.

PickLow Choose the lower-valued card from two randomly drawn cards.

Cannon Hit a target at a random distance by adjusting the firing angle of a cannon.

Traffic Light Decide to drive, slow down, or stop based on the current traffic light color.

K-Bandit Find and exploit the arm with the highest expected reward in a multi-armed bandit setup.

Usage

Here is an example of how to use the Cannon 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.17.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

rlate_env-0.0.17-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlate_env-0.0.17.tar.gz
  • Upload date:
  • Size: 7.2 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.17.tar.gz
Algorithm Hash digest
SHA256 c3731dfadb10d779396510baf517eb7a768bc2677d81b0ee64d79a57d3062383
MD5 7454113dcd31640c5f808725589c0e3b
BLAKE2b-256 26c358c60fd8664419341290c2722f2ad441b5e4a49fe3b1318fca00c1721de9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rlate_env-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa6aba3f79da7375f85360f7d66ed44227281889484cdd3a2c012087aaa3a83
MD5 dc5d82f094d875c16c14c5f9767d2a1a
BLAKE2b-256 3c682e281047f96a729f558fd6483b6aa95f8ccac391f2095175536d123915e1

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