Training environment for reinforcement learning with event-based context
Project description
Open The Chests Project
Open the Chests is a game that mimics the problem of situation recognition in a concurrent event-based environment. The player is confronted with a number of boxes, each one associated with a button. Pressing a button sometimes leads to a box opening, sometimes leads to nothing. The player also observes events being displayed on a screen. The goal of the player is to deduce a set of interpretable event-based rules that allow them to determine with confidence at which moment the chests can be opened.
Quick Start
To install Open-the-Chests and all its libraries simply run:
pip install openthechests
The environment is then ready to execute by simply running the demo.py
file.
Running the Demo
The execution of the demo file generates an environment using a YAML
configuration
file and allows you to interact with the environment manually.
To run the demo, use the following command:
python demo.py
This will initialize the environment and start the interactive session where you can input actions to interact with the boxes.
Folder Structure
The openthechests
module contains several folders and files of interest:
openthechests/
│
├── docs/
│ └── examples/
│
├── openthechests/
│ └── src/
│ ├── elements/
│ ├── utils/
│ ├── OpenTheChests.py
│ └── OpenTheChestsGym.py
│
├── demo.py
├── README.md
└── requirements.txt
Descriptions of Key Files and Folders
-
docs/: Contains documentation related to the project.
- examples/: Example configurations and usage of the environment.
__init__.py
: Initializes the examples module.
- examples/: Example configurations and usage of the environment.
-
openthechests/: The main code for the environment.
- src/: Contains the main environment elements.
- elements/: Contains classes that define the environment elements.
- utils/: Contains useful functions used by other modules.
OpenTheChests.py
: Defines the core environment logic.OpenTheChestsGym.py
: Provides the Gym interface for the environment.
- src/: Contains the main environment elements.
-
demo.py
: Demonstration script for the environment. -
requirements.txt
: Lists the dependencies required to run the project. -
third_parties_licences.txt
: Lists the licences to apply from the dependencies
Licence
Open-the-chests applies the 3-clauses BSD licence.
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 openthechests-0.5.8.tar.gz
.
File metadata
- Download URL: openthechests-0.5.8.tar.gz
- Upload date:
- Size: 72.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375f7bd6e8d446b537135690a82cda864215048bc628797e171a84396f75a4ec |
|
MD5 | c8f1f2828ae97ad6d35aebe26cc8fe62 |
|
BLAKE2b-256 | fbb37b114fa9d641796fd0bba18351b04e9e3c91afe524b531be3a9c390596b3 |
File details
Details for the file openthechests-0.5.8-py3-none-any.whl
.
File metadata
- Download URL: openthechests-0.5.8-py3-none-any.whl
- Upload date:
- Size: 25.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc68e4b34db1ca22709d5913258993a79c9d2d05a9558f0b133a9c36af91a5c |
|
MD5 | fc7cda9242c6178a60c30c5fa9414a03 |
|
BLAKE2b-256 | 1c323bd647e2a401e157cab70ee443f96b09922024b6ca61f0533da22c64d6f5 |