continual-foragax 0.6.0__tar.gz → 0.7.0__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.
- continual_foragax-0.7.0/PKG-INFO +16 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/pyproject.toml +8 -8
- continual_foragax-0.7.0/src/continual_foragax.egg-info/PKG-INFO +16 -0
- continual_foragax-0.7.0/src/continual_foragax.egg-info/requires.txt +10 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/foragax/env.py +3 -3
- continual_foragax-0.6.0/PKG-INFO +0 -16
- continual_foragax-0.6.0/src/continual_foragax.egg-info/PKG-INFO +0 -16
- continual_foragax-0.6.0/src/continual_foragax.egg-info/requires.txt +0 -10
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/README.md +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/setup.cfg +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/SOURCES.txt +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/dependency_links.txt +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/entry_points.txt +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/top_level.txt +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/foragax/__init__.py +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/foragax/objects.py +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/foragax/registry.py +0 -0
- {continual_foragax-0.6.0 → continual_foragax-0.7.0}/tests/test_foragax.py +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: continual-foragax
|
3
|
+
Version: 0.7.0
|
4
|
+
Summary: A continual reinforcement learning benchmark
|
5
|
+
Author-email: Steven Tang <stang5@ualberta.ca>
|
6
|
+
Requires-Python: >=3.8
|
7
|
+
Description-Content-Type: text/markdown
|
8
|
+
Requires-Dist: gymnax
|
9
|
+
Requires-Dist: six; python_version < "3.10"
|
10
|
+
Provides-Extra: dev
|
11
|
+
Requires-Dist: pre-commit; extra == "dev"
|
12
|
+
Requires-Dist: pytest; extra == "dev"
|
13
|
+
Requires-Dist: pytest-benchmark; extra == "dev"
|
14
|
+
Requires-Dist: ruff; extra == "dev"
|
15
|
+
|
16
|
+
# foragax
|
@@ -1,23 +1,23 @@
|
|
1
1
|
[project]
|
2
2
|
name = "continual-foragax"
|
3
|
-
version = "0.
|
3
|
+
version = "0.7.0"
|
4
4
|
description = "A continual reinforcement learning benchmark"
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
7
7
|
{ name = "Steven Tang", email = "stang5@ualberta.ca" }
|
8
8
|
]
|
9
|
-
requires-python = ">=3.
|
9
|
+
requires-python = ">=3.8"
|
10
10
|
dependencies = [
|
11
11
|
"gymnax",
|
12
|
-
"six; python_version
|
12
|
+
"six; python_version < '3.10'",
|
13
13
|
]
|
14
14
|
|
15
15
|
[project.optional-dependencies]
|
16
16
|
dev = [
|
17
|
-
"pre-commit
|
18
|
-
"pytest
|
19
|
-
"pytest-benchmark
|
20
|
-
"ruff
|
17
|
+
"pre-commit",
|
18
|
+
"pytest",
|
19
|
+
"pytest-benchmark",
|
20
|
+
"ruff",
|
21
21
|
]
|
22
22
|
|
23
23
|
[project.scripts]
|
@@ -30,6 +30,6 @@ build-backend = "setuptools.build_meta"
|
|
30
30
|
[tool]
|
31
31
|
[tool.commitizen]
|
32
32
|
name = "cz_conventional_commits"
|
33
|
-
version = "0.
|
33
|
+
version = "0.7.0"
|
34
34
|
tag_format = "$version"
|
35
35
|
version_files = ["pyproject.toml"]
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: continual-foragax
|
3
|
+
Version: 0.7.0
|
4
|
+
Summary: A continual reinforcement learning benchmark
|
5
|
+
Author-email: Steven Tang <stang5@ualberta.ca>
|
6
|
+
Requires-Python: >=3.8
|
7
|
+
Description-Content-Type: text/markdown
|
8
|
+
Requires-Dist: gymnax
|
9
|
+
Requires-Dist: six; python_version < "3.10"
|
10
|
+
Provides-Extra: dev
|
11
|
+
Requires-Dist: pre-commit; extra == "dev"
|
12
|
+
Requires-Dist: pytest; extra == "dev"
|
13
|
+
Requires-Dist: pytest-benchmark; extra == "dev"
|
14
|
+
Requires-Dist: ruff; extra == "dev"
|
15
|
+
|
16
|
+
# foragax
|
@@ -6,7 +6,7 @@ Source: https://github.com/andnp/Foragax
|
|
6
6
|
from dataclasses import dataclass
|
7
7
|
from enum import IntEnum
|
8
8
|
from functools import partial
|
9
|
-
from typing import Any, Tuple, Union
|
9
|
+
from typing import Any, Dict, Tuple, Union
|
10
10
|
|
11
11
|
import jax
|
12
12
|
import jax.numpy as jnp
|
@@ -105,7 +105,7 @@ class ForagaxEnv(environment.Environment):
|
|
105
105
|
state: EnvState,
|
106
106
|
action: Union[int, float, jax.Array],
|
107
107
|
params: EnvParams,
|
108
|
-
) ->
|
108
|
+
) -> Tuple[jax.Array, EnvState, jax.Array, jax.Array, Dict[Any, Any]]:
|
109
109
|
"""Perform single timestep state transition."""
|
110
110
|
num_obj_types = len(self.object_ids)
|
111
111
|
# Decode the object grid: positive values are objects, negative are timers (treat as empty)
|
@@ -167,7 +167,7 @@ class ForagaxEnv(environment.Environment):
|
|
167
167
|
|
168
168
|
def reset_env(
|
169
169
|
self, key: jax.Array, params: EnvParams
|
170
|
-
) ->
|
170
|
+
) -> Tuple[jax.Array, EnvState]:
|
171
171
|
"""Reset environment state."""
|
172
172
|
key, subkey = jax.random.split(key)
|
173
173
|
|
continual_foragax-0.6.0/PKG-INFO
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: continual-foragax
|
3
|
-
Version: 0.6.0
|
4
|
-
Summary: A continual reinforcement learning benchmark
|
5
|
-
Author-email: Steven Tang <stang5@ualberta.ca>
|
6
|
-
Requires-Python: >=3.9
|
7
|
-
Description-Content-Type: text/markdown
|
8
|
-
Requires-Dist: gymnax
|
9
|
-
Requires-Dist: six; python_version == "3.9"
|
10
|
-
Provides-Extra: dev
|
11
|
-
Requires-Dist: pre-commit>=4.3.0; extra == "dev"
|
12
|
-
Requires-Dist: pytest>=8.4.1; extra == "dev"
|
13
|
-
Requires-Dist: pytest-benchmark>=5.1.0; extra == "dev"
|
14
|
-
Requires-Dist: ruff>=0.12.9; extra == "dev"
|
15
|
-
|
16
|
-
# foragax
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: continual-foragax
|
3
|
-
Version: 0.6.0
|
4
|
-
Summary: A continual reinforcement learning benchmark
|
5
|
-
Author-email: Steven Tang <stang5@ualberta.ca>
|
6
|
-
Requires-Python: >=3.9
|
7
|
-
Description-Content-Type: text/markdown
|
8
|
-
Requires-Dist: gymnax
|
9
|
-
Requires-Dist: six; python_version == "3.9"
|
10
|
-
Provides-Extra: dev
|
11
|
-
Requires-Dist: pre-commit>=4.3.0; extra == "dev"
|
12
|
-
Requires-Dist: pytest>=8.4.1; extra == "dev"
|
13
|
-
Requires-Dist: pytest-benchmark>=5.1.0; extra == "dev"
|
14
|
-
Requires-Dist: ruff>=0.12.9; extra == "dev"
|
15
|
-
|
16
|
-
# foragax
|
File without changes
|
File without changes
|
{continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/entry_points.txt
RENAMED
File without changes
|
{continual_foragax-0.6.0 → continual_foragax-0.7.0}/src/continual_foragax.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|