continual-foragax 0.25.0__py3-none-any.whl → 0.26.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: continual-foragax
3
- Version: 0.25.0
3
+ Version: 0.26.0
4
4
  Summary: A continual reinforcement learning benchmark
5
5
  Author-email: Steven Tang <stang5@ualberta.ca>
6
6
  Requires-Python: >=3.8
@@ -1,8 +1,8 @@
1
1
  foragax/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  foragax/colors.py,sha256=rqNPiywP4Nvr0POhsGpasRk-nMMTS3DOwFRUgperlUk,2065
3
3
  foragax/env.py,sha256=w9KDLRm0xvJjnRP0C4gynk1At6LVdrz5xBEtDC3ePvM,24958
4
- foragax/objects.py,sha256=CblI0NI7PQzeKk3MZa8sbaa9wB4pc_8CyOGbJOFWytE,9391
5
- foragax/registry.py,sha256=ExsKKatqsQBpEpgE-xUCFOHxuXoBVysJk5eR1OoI7kw,13456
4
+ foragax/objects.py,sha256=FCLZ-8d7qq9VMTG6G-TaRt842-sjgB0-DH0IoHwwngI,9503
5
+ foragax/registry.py,sha256=7-6VDN1MKVEvX_1u5G8NkSpv9BccEmtjJa77-OTNg3A,14324
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.25.0.dist-info/METADATA,sha256=GXiKdIYRxCL0MgjTkPK1xWa-3bNh2rBvloPEnict1Rc,4897
132
- continual_foragax-0.25.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
133
- continual_foragax-0.25.0.dist-info/entry_points.txt,sha256=Qiu6iE_XudrDO_bVAMeA435h4PO9ourt8huvSHiuMPc,41
134
- continual_foragax-0.25.0.dist-info/top_level.txt,sha256=-z3SDK6RfLIcLI24n8rdbeFzlVY3hunChzlu-v1Fncs,8
135
- continual_foragax-0.25.0.dist-info/RECORD,,
131
+ continual_foragax-0.26.0.dist-info/METADATA,sha256=9cCIfMlbC9CAiRZBOoeiZwO45j-v60ZHjn3kjRTu2IE,4897
132
+ continual_foragax-0.26.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
133
+ continual_foragax-0.26.0.dist-info/entry_points.txt,sha256=Qiu6iE_XudrDO_bVAMeA435h4PO9ourt8huvSHiuMPc,41
134
+ continual_foragax-0.26.0.dist-info/top_level.txt,sha256=-z3SDK6RfLIcLI24n8rdbeFzlVY3hunChzlu-v1Fncs,8
135
+ continual_foragax-0.26.0.dist-info/RECORD,,
foragax/objects.py CHANGED
@@ -318,6 +318,7 @@ def create_weather_objects(
318
318
  repeat: int = 500,
319
319
  multiplier: float = 1.0,
320
320
  same_color: bool = False,
321
+ random_respawn: bool = False,
321
322
  ):
322
323
  """Create HOT and COLD WeatherObject instances using the specified file.
323
324
 
@@ -346,6 +347,7 @@ def create_weather_objects(
346
347
  repeat=repeat,
347
348
  multiplier=multiplier,
348
349
  color=hot_color,
350
+ random_respawn=random_respawn,
349
351
  )
350
352
 
351
353
  cold_color = hot_color if same_color else (0, 255, 255)
@@ -355,6 +357,7 @@ def create_weather_objects(
355
357
  repeat=repeat,
356
358
  multiplier=-multiplier,
357
359
  color=cold_color,
360
+ random_respawn=random_respawn,
358
361
  )
359
362
 
360
363
  return hot, cold
foragax/registry.py CHANGED
@@ -64,6 +64,27 @@ ENV_CONFIGS: Dict[str, Dict[str, Any]] = {
64
64
  "biomes": None,
65
65
  "nowrap": True,
66
66
  },
67
+ "ForagaxWeather-v4": {
68
+ "size": None,
69
+ "aperture_size": None,
70
+ "objects": None,
71
+ "biomes": None,
72
+ "nowrap": True,
73
+ "deterministic_spawn": True,
74
+ },
75
+ "ForagaxWeather-v5": {
76
+ "size": (15, 15),
77
+ "aperture_size": None,
78
+ "objects": None,
79
+ "biomes": (
80
+ # Hot biome
81
+ Biome(start=(0, 3), stop=(15, 5), object_frequencies=(0.5, 0.0)),
82
+ # Cold biome
83
+ Biome(start=(0, 10), stop=(15, 12), object_frequencies=(0.0, 0.5)),
84
+ ),
85
+ "nowrap": False,
86
+ "deterministic_spawn": True,
87
+ },
67
88
  "ForagaxTwoBiome-v1": {
68
89
  "size": (15, 15),
69
90
  "aperture_size": None,
@@ -400,7 +421,7 @@ def make(
400
421
  ),
401
422
  )
402
423
 
403
- if env_id == "ForagaxWeather-v3":
424
+ if env_id in ("ForagaxWeather-v3", "ForagaxWeather-v4"):
404
425
  margin = aperture_size[1] // 2 + 1
405
426
  width = 2 * margin + 9
406
427
  config["size"] = (15, width)
@@ -420,8 +441,16 @@ def make(
420
441
  )
421
442
 
422
443
  if env_id.startswith("ForagaxWeather"):
423
- same_color = env_id in ("ForagaxWeather-v2", "ForagaxWeather-v3")
424
- hot, cold = create_weather_objects(file_index=file_index, same_color=same_color)
444
+ same_color = env_id in (
445
+ "ForagaxWeather-v2",
446
+ "ForagaxWeather-v3",
447
+ "ForagaxWeather-v4",
448
+ "ForagaxWeather-v5",
449
+ )
450
+ random_respawn = env_id in ("ForagaxWeather-v4", "ForagaxWeather-v5")
451
+ hot, cold = create_weather_objects(
452
+ file_index=file_index, same_color=same_color, random_respawn=random_respawn
453
+ )
425
454
  config["objects"] = (hot, cold)
426
455
 
427
456
  if env_id == "ForagaxTwoBiome-v16":