continual-foragax 0.10.2__py3-none-any.whl → 0.11.0__py3-none-any.whl
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.10.2.dist-info → continual_foragax-0.11.0.dist-info}/METADATA +1 -1
- {continual_foragax-0.10.2.dist-info → continual_foragax-0.11.0.dist-info}/RECORD +8 -8
- foragax/env.py +2 -3
- foragax/objects.py +31 -0
- foragax/registry.py +17 -0
- {continual_foragax-0.10.2.dist-info → continual_foragax-0.11.0.dist-info}/WHEEL +0 -0
- {continual_foragax-0.10.2.dist-info → continual_foragax-0.11.0.dist-info}/entry_points.txt +0 -0
- {continual_foragax-0.10.2.dist-info → continual_foragax-0.11.0.dist-info}/top_level.txt +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
foragax/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
foragax/colors.py,sha256=rqNPiywP4Nvr0POhsGpasRk-nMMTS3DOwFRUgperlUk,2065
|
3
|
-
foragax/env.py,sha256=
|
4
|
-
foragax/objects.py,sha256=
|
5
|
-
foragax/registry.py,sha256=
|
3
|
+
foragax/env.py,sha256=EyWJ67GLCJl2Re8s4AoVRGXbccgOGn0J_XxuuWJaGrE,18702
|
4
|
+
foragax/objects.py,sha256=xLzeu9pN3vO8WSDdb1jvPzFlxP8CJV5RnShaL4Sq2LA,6665
|
5
|
+
foragax/registry.py,sha256=wNpRcPIotsxa0R6qzGNJnXWqJvzHtxTRHSgRekYrIBc,3255
|
6
6
|
foragax/rendering.py,sha256=bms7wvBZTofoR-K-2QD2Ggeed7Viw8uwAEiEpEM3eSo,2768
|
7
7
|
foragax/weather.py,sha256=KNAiwuFz8V__6G75vZIWQKPocLzXqxXn-Vt4TbHIpcA,1258
|
8
8
|
foragax/data/ECA_non-blended_custom/TG_SOUID100897.txt,sha256=N7URbX6VlCZvCboUogYjMzy1I-0cfNPOn0QTLSHHfQ0,1776751
|
@@ -128,8 +128,8 @@ foragax/data/ECA_non-blended_custom/TG_SOUID156887.txt,sha256=juzTPgJoJxfqmZkorL
|
|
128
128
|
foragax/data/ECA_non-blended_custom/elements.txt,sha256=OtcUBoDAHxuln79BPKGu0tsQxG_5G2BfAX3Ck130kEA,4507
|
129
129
|
foragax/data/ECA_non-blended_custom/metadata.txt,sha256=nudnmOCy5cPJfSXt_IjyX0S5-T7NkCZREICZSimqeqc,48260
|
130
130
|
foragax/data/ECA_non-blended_custom/sources.txt,sha256=1j3lSmINAoCMqPqFrHfZJriOz6sTYZNOhXzUwvTLas0,20857
|
131
|
-
continual_foragax-0.
|
132
|
-
continual_foragax-0.
|
133
|
-
continual_foragax-0.
|
134
|
-
continual_foragax-0.
|
135
|
-
continual_foragax-0.
|
131
|
+
continual_foragax-0.11.0.dist-info/METADATA,sha256=yIwRR9B648S9_Y_013soFTIQYcVNRfeLxYp-pJ3AyZ0,4897
|
132
|
+
continual_foragax-0.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
133
|
+
continual_foragax-0.11.0.dist-info/entry_points.txt,sha256=Qiu6iE_XudrDO_bVAMeA435h4PO9ourt8huvSHiuMPc,41
|
134
|
+
continual_foragax-0.11.0.dist-info/top_level.txt,sha256=-z3SDK6RfLIcLI24n8rdbeFzlVY3hunChzlu-v1Fncs,8
|
135
|
+
continual_foragax-0.11.0.dist-info/RECORD,,
|
foragax/env.py
CHANGED
@@ -19,9 +19,9 @@ from foragax.weather import get_temperature
|
|
19
19
|
|
20
20
|
|
21
21
|
class Actions(IntEnum):
|
22
|
-
|
22
|
+
DOWN = 0
|
23
23
|
RIGHT = 1
|
24
|
-
|
24
|
+
UP = 2
|
25
25
|
LEFT = 3
|
26
26
|
|
27
27
|
|
@@ -434,7 +434,6 @@ class ForagaxObjectEnv(ForagaxEnv):
|
|
434
434
|
# Decode grid for observation
|
435
435
|
obs_grid = jnp.maximum(0, state.object_grid)
|
436
436
|
aperture = self._get_aperture(obs_grid, state.pos)
|
437
|
-
aperture = jnp.flip(aperture, axis=0)
|
438
437
|
|
439
438
|
# Handle case with no objects (only EMPTY)
|
440
439
|
if self.num_color_channels == 0:
|
foragax/objects.py
CHANGED
@@ -179,6 +179,37 @@ DEATHCAP = DefaultForagaxObject(
|
|
179
179
|
)
|
180
180
|
AGENT = DefaultForagaxObject(name="agent", blocking=True, color=(0, 0, 255))
|
181
181
|
|
182
|
+
BROWN_MOREL = NormalRegenForagaxObject(
|
183
|
+
name="brown_morel",
|
184
|
+
reward=30.0,
|
185
|
+
collectable=True,
|
186
|
+
color=(63, 30, 25),
|
187
|
+
mean_regen_delay=300,
|
188
|
+
std_regen_delay=30,
|
189
|
+
)
|
190
|
+
BROWN_OYSTER = NormalRegenForagaxObject(
|
191
|
+
name="brown_oyster",
|
192
|
+
reward=1.0,
|
193
|
+
collectable=True,
|
194
|
+
color=(63, 30, 25),
|
195
|
+
mean_regen_delay=10,
|
196
|
+
std_regen_delay=1,
|
197
|
+
)
|
198
|
+
GREEN_DEATHCAP = DefaultForagaxObject(
|
199
|
+
name="green_deathcap",
|
200
|
+
reward=-1.0,
|
201
|
+
collectable=True,
|
202
|
+
color=(0, 255, 0),
|
203
|
+
regen_delay=(10, 10),
|
204
|
+
)
|
205
|
+
GREEN_FAKE = DefaultForagaxObject(
|
206
|
+
name="green_fake",
|
207
|
+
reward=0.0,
|
208
|
+
collectable=True,
|
209
|
+
color=(0, 255, 0),
|
210
|
+
regen_delay=(10, 10),
|
211
|
+
)
|
212
|
+
|
182
213
|
|
183
214
|
def create_weather_objects(
|
184
215
|
file_index: int = 0, repeat: int = 500, multiplier: float = 1.0
|
foragax/registry.py
CHANGED
@@ -10,6 +10,10 @@ from foragax.env import (
|
|
10
10
|
ForagaxWorldEnv,
|
11
11
|
)
|
12
12
|
from foragax.objects import (
|
13
|
+
BROWN_MOREL,
|
14
|
+
BROWN_OYSTER,
|
15
|
+
GREEN_DEATHCAP,
|
16
|
+
GREEN_FAKE,
|
13
17
|
LARGE_MOREL,
|
14
18
|
LARGE_OYSTER,
|
15
19
|
MEDIUM_MOREL,
|
@@ -28,6 +32,19 @@ ENV_CONFIGS: Dict[str, Dict[str, Any]] = {
|
|
28
32
|
Biome(start=(0, 10), stop=(15, 12), object_frequencies=(0.0, 0.5)),
|
29
33
|
),
|
30
34
|
},
|
35
|
+
"ForagaxTwoBiome-v1": {
|
36
|
+
"size": (15, 15),
|
37
|
+
"aperture_size": None,
|
38
|
+
"objects": (BROWN_MOREL, BROWN_OYSTER, GREEN_DEATHCAP, GREEN_FAKE),
|
39
|
+
"biomes": (
|
40
|
+
# Morel biome
|
41
|
+
Biome(start=(3, 0), stop=(5, 15), object_frequencies=(0.5, 0.0, 0.25, 0.0)),
|
42
|
+
# Oyster biome
|
43
|
+
Biome(
|
44
|
+
start=(10, 0), stop=(12, 15), object_frequencies=(0.0, 0.5, 0.0, 0.25)
|
45
|
+
),
|
46
|
+
),
|
47
|
+
},
|
31
48
|
"ForagaxTwoBiomeSmall-v1": {
|
32
49
|
"size": (16, 8),
|
33
50
|
"aperture_size": None,
|
File without changes
|
File without changes
|
File without changes
|