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.
@@ -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.6.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"
9
+ requires-python = ">=3.8"
10
10
  dependencies = [
11
11
  "gymnax",
12
- "six; python_version == '3.9'",
12
+ "six; python_version < '3.10'",
13
13
  ]
14
14
 
15
15
  [project.optional-dependencies]
16
16
  dev = [
17
- "pre-commit>=4.3.0",
18
- "pytest>=8.4.1",
19
- "pytest-benchmark>=5.1.0",
20
- "ruff>=0.12.9",
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.6.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
@@ -0,0 +1,10 @@
1
+ gymnax
2
+
3
+ [:python_version < "3.10"]
4
+ six
5
+
6
+ [dev]
7
+ pre-commit
8
+ pytest
9
+ pytest-benchmark
10
+ ruff
@@ -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
- ) -> tuple[jax.Array, EnvState, jax.Array, jax.Array, dict[Any, Any]]:
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
- ) -> tuple[jax.Array, EnvState]:
170
+ ) -> Tuple[jax.Array, EnvState]:
171
171
  """Reset environment state."""
172
172
  key, subkey = jax.random.split(key)
173
173
 
@@ -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
@@ -1,10 +0,0 @@
1
- gymnax
2
-
3
- [:python_version == "3.9"]
4
- six
5
-
6
- [dev]
7
- pre-commit>=4.3.0
8
- pytest>=8.4.1
9
- pytest-benchmark>=5.1.0
10
- ruff>=0.12.9