RLGridWorld
This is a simple yet efficient, highly customizable grid-world implementation to run reinforcement learning algorithms.
The official documentation is here https://rlgridworld.readthedocs.io/ <https://rlgridworld.readthedocs.io/>_
install with
.. code-block:: bash
pip install rlgridworld
Environment
You can simply use a string like
.. code-block:: text
W H T O W
W O O H W
W O A O W
W O O T W
W W W W W
to represent a grid-world, where
* A: Agent
* T: Target location
* O: Empty Ground spot (where the agent can step on and stay)
* W: Wall
* H: Hole (where the agent will fall if it steps in)
The single_rgb_array rendering of which is:
.. image:: imgs/ExampleFile.png :width: 400 :alt: Alternative text
The goal of the agent is to reach one of the Target locations without falling into a hole or falling out of the edge. (More pre-configured environments can be found in EnvSettings)
Actions
The actions can be continuous or discrete. The agent can also move diagonally. The details can be found in the Action class in rlgridworld/gridenv.py
* Continuous: Action is a tuple of length 2, where the first element is the x-axis and the second element is the y-axis
* Discrete: Action can be chosen from ['UP', 'DOWN', 'RIGHT', 'LEFT', 'UPRIGHT', 'UPLEFT', 'DOWNRIGHT', 'DOWNLEFT']
Reward
Customizable with r_fall_off, r_reach_target, r_timeout, r_continue. The details can be found in the init function of class GridEnv in rlgridworld/gridenv.py
Metadata
Release files for rlgridworld 0.1004
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rlgridworld-0.1004-py3-none-any.whl | Python 3 | none | any | Details for rlgridworld-0.1004-py3-none-any.whl |
Release files / rlgridworld-0.1004-py3-none-any.whl
| Download URL | rlgridworld-0.1004-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40502096a2b09c38257854ba71ca37dc8c8e224b0e03cdc3c77a286fb3dff1f8
|
|
BLAKE2b-256 checksum How to use checksums |
4424f0c24eec83292406813907b3620e217e8eb625d0f66ec74ae9eb4300919f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.13.0 pkginfo/1.9.6 requests/2.28.1 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.8.15
|
Security for rlgridworld 0.1004
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.