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.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rlate_env-0.0.11.tar.gz
.
File metadata
- Download URL: rlate_env-0.0.11.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adee1661be1da8e11ab41ea434e97f85c8966886c0637cc0c0f36d676a55e6fb |
|
MD5 | 8219c9def431527cf81639f4a37b6654 |
|
BLAKE2b-256 | 39277c1e8137520d98430e365b8510bb1292699db9b5ca2ec1906dceaa62b28d |
File details
Details for the file rlate_env-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: rlate_env-0.0.11-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3fd71ee0b2c09320c0431ca81f0edc628a7cd8772df7b4fd0d85df470c9513 |
|
MD5 | 753911e524d37f28ffb4b4dd1d8e4a02 |
|
BLAKE2b-256 | 4fa7470236a076ae6f58715c3bf49acd7ce15fd84af1f68ba614d80d153ea291 |