A strongly typed Multi-Agent Reinforcement Learning framework
Project description
RLEnv: yet another RL framework
This framework aims at high level abstractions of RL models, allowing to build algorithms on top of it.
Designing an environment
To create an environment that is compatible with RLEnv, you should inherit from the RLEnv
class.
Instanciating an environment
Simple environments
import marlenv as menv
print(menv.__version__)
# From Gym
env = menv.make("CartPole-v1")
# From pettingzoo
from pettingzoo.sisl import pursuit_v4
env = menv.make(pursuit_v4.parallel_env())
Adding extra information to the observations
import marlenv as menv
# Building the environment with additional information
from pettingzoo.sisl import pursuit_v4
env = menv.Builder(pursuit_v4.parallel_env())\
.with_agent_id()\
.with_last_action()\
.build()
# 8 agents + 5 actions = 13 extras
assert env.extra_feature_shape == (13, )
Related projects
- MARL: multi-agent reinforcement framework https://github.com/yamoling/marl
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
multi_agent_rlenv-1.0.0.tar.gz
(22.4 kB
view details)
Built Distribution
File details
Details for the file multi_agent_rlenv-1.0.0.tar.gz
.
File metadata
- Download URL: multi_agent_rlenv-1.0.0.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43956d6aa0afb7e3b5110dcd1b7f1bd034a4ad1cf96ac8271465d2bcd798b4ac |
|
MD5 | 5e1ddc6fdc2fc70995309f67b42c619a |
|
BLAKE2b-256 | 09b416e63966aad8a8f8bd4b1b23aca4c398c7c6301624c7047265b5fa430166 |
Provenance
File details
Details for the file multi_agent_rlenv-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: multi_agent_rlenv-1.0.0-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f47f9b0369bf38f9378d34c2559356667ea735993d18d5b46f0927b5cf7c91d |
|
MD5 | 0211fbab663f804350df010db9b500c4 |
|
BLAKE2b-256 | 0756bc337050f2c738163564174e91452c650d4ca1e58ac5dcfd50ca9607f96e |