multi-agent-rlenv 3.6.2__tar.gz → 3.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/PKG-INFO +1 -1
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/pyproject.toml +1 -1
- multi_agent_rlenv-3.6.3/src/marlenv/catalog/__init__.py +22 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/catalog/deepsea.py +1 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_catalog.py +13 -4
- multi_agent_rlenv-3.6.2/src/marlenv/catalog/__init__.py +0 -26
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/.github/workflows/ci.yaml +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/.github/workflows/docs.yaml +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/.gitignore +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/LICENSE +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/README.md +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/gym_adapter.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/pettingzoo_adapter.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/pymarl_adapter.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/smac_adapter.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/env_builder.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/env_pool.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/exceptions.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/mock_env.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/env.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/episode.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/observation.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/spaces.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/state.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/step.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/models/transition.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/py.typed +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/cached_property_collector.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/import_placeholders.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/schedule.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/action_randomizer.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/agent_id_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/available_actions_mask.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/available_actions_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/blind_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/centralised.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/delayed_rewards.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/last_action_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/paddings.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/penalty_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/potential_shaping.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/rlenv_wrapper.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/time_limit.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/video_recorder.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/__init__.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_adapters.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_deepsea.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_episode.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_models.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_others.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_pool.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_schedules.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_serialization.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_spaces.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/test_wrappers.py +0 -0
- {multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: multi-agent-rlenv
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.3
|
|
4
4
|
Summary: A strongly typed Multi-Agent Reinforcement Learning framework
|
|
5
5
|
Project-URL: repository, https://github.com/yamoling/multi-agent-rlenv
|
|
6
6
|
Author-email: Yannick Molinghen <yannick.molinghen@ulb.be>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from marlenv.adapters import SMAC
|
|
2
|
+
from .deepsea import DeepSea
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"SMAC",
|
|
7
|
+
"DeepSea",
|
|
8
|
+
"lle",
|
|
9
|
+
"overcooked",
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def lle():
|
|
14
|
+
from lle import LLE # pyright: ignore[reportMissingImports]
|
|
15
|
+
|
|
16
|
+
return LLE
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def overcooked():
|
|
20
|
+
from overcooked import Overcooked # pyright: ignore[reportMissingImports]
|
|
21
|
+
|
|
22
|
+
return Overcooked
|
|
@@ -32,6 +32,7 @@ class DeepSea(MARLEnv[MultiDiscreteSpace]):
|
|
|
32
32
|
self._row = 0
|
|
33
33
|
self._col = 0
|
|
34
34
|
self._step_right_penalty = -0.01 / self.max_depth
|
|
35
|
+
self.name = f"{self.__class__.__name__}-{self.max_depth}"
|
|
35
36
|
|
|
36
37
|
def get_observation(self) -> Observation:
|
|
37
38
|
return Observation(np.array([[self._row, self._col]], dtype=np.float32), self.available_actions())
|
|
@@ -2,18 +2,27 @@ import pytest
|
|
|
2
2
|
from marlenv import catalog
|
|
3
3
|
from marlenv.utils import dummy_type, dummy_function
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
try:
|
|
6
|
+
catalog.lle()
|
|
7
|
+
skip_lle = False
|
|
8
|
+
except ImportError:
|
|
9
|
+
skip_lle = True
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
catalog.overcooked()
|
|
13
|
+
skip_overcooked = False
|
|
14
|
+
except ImportError:
|
|
15
|
+
skip_overcooked = True
|
|
7
16
|
|
|
8
17
|
|
|
9
18
|
@pytest.mark.skipif(skip_lle, reason="LLE is not installed")
|
|
10
19
|
def test_lle():
|
|
11
|
-
catalog.
|
|
20
|
+
catalog.lle().level(1)
|
|
12
21
|
|
|
13
22
|
|
|
14
23
|
@pytest.mark.skipif(skip_overcooked, reason="Overcooked is not installed")
|
|
15
24
|
def test_overcooked():
|
|
16
|
-
catalog.
|
|
25
|
+
catalog.overcooked().from_layout("scenario4")
|
|
17
26
|
|
|
18
27
|
|
|
19
28
|
def test_dummy_type():
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
from importlib.util import find_spec
|
|
2
|
-
from ..utils.import_placeholders import dummy_type
|
|
3
|
-
from marlenv.adapters import SMAC
|
|
4
|
-
from .deepsea import DeepSea
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
HAS_LLE = find_spec("lle") is not None
|
|
8
|
-
if HAS_LLE:
|
|
9
|
-
from lle import LLE # pyright: ignore[reportMissingImports]
|
|
10
|
-
else:
|
|
11
|
-
LLE = dummy_type("lle", "laser-learning-environment")
|
|
12
|
-
|
|
13
|
-
HAS_OVERCOOKED = find_spec("overcooked") is not None
|
|
14
|
-
if HAS_OVERCOOKED:
|
|
15
|
-
from overcooked import Overcooked # pyright: ignore[reportMissingImports]
|
|
16
|
-
else:
|
|
17
|
-
Overcooked = dummy_type("overcooked", "overcooked")
|
|
18
|
-
|
|
19
|
-
__all__ = [
|
|
20
|
-
"Overcooked",
|
|
21
|
-
"SMAC",
|
|
22
|
-
"LLE",
|
|
23
|
-
"DeepSea",
|
|
24
|
-
"HAS_LLE",
|
|
25
|
-
"HAS_OVERCOOKED",
|
|
26
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/adapters/pettingzoo_adapter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/cached_property_collector.py
RENAMED
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/utils/import_placeholders.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/action_randomizer.py
RENAMED
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/agent_id_wrapper.py
RENAMED
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/available_actions_mask.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/last_action_wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{multi_agent_rlenv-3.6.2 → multi_agent_rlenv-3.6.3}/src/marlenv/wrappers/potential_shaping.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|