continual-foragax 0.10.2__tar.gz → 0.10.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.
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/PKG-INFO +1 -1
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/pyproject.toml +2 -2
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/PKG-INFO +1 -1
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/env.py +2 -3
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/tests/test_foragax.py +30 -30
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/README.md +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/setup.cfg +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/SOURCES.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/dependency_links.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/entry_points.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/requires.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/top_level.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/__init__.py +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/colors.py +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100897.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100928.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100929.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100930.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID100931.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106714.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106715.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106716.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106717.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106718.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106930.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106931.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106932.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106933.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106934.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106935.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106936.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106937.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106938.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106939.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106940.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106941.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106942.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106943.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106994.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106995.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106996.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106997.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106998.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID106999.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107000.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107001.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107002.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107003.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107004.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107005.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107006.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107007.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107008.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107009.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107010.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107011.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107012.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107013.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107014.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107015.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107016.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107017.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107018.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107019.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107020.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107021.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107022.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107023.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107024.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107025.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107026.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107027.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107028.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107029.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107030.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107031.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107032.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107033.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107034.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107035.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107036.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107037.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107038.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107039.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107040.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107041.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107042.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107043.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107044.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107045.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107046.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107047.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107048.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107049.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107050.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107051.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107052.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107053.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107054.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107055.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107056.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107057.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107058.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107059.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107060.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107061.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107062.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107063.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107064.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107065.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107066.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107067.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107068.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107069.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107070.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID107071.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID115808.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID115812.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID146811.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156831.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156835.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156839.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156843.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156847.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156851.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156855.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156859.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156863.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156867.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156871.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156875.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156879.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156883.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/TG_SOUID156887.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/elements.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/metadata.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/data/ECA_non-blended_custom/sources.txt +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/objects.py +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/registry.py +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/rendering.py +0 -0
- {continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/foragax/weather.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "continual-foragax"
|
3
|
-
version = "0.10.
|
3
|
+
version = "0.10.3"
|
4
4
|
description = "A continual reinforcement learning benchmark"
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -30,7 +30,7 @@ build-backend = "setuptools.build_meta"
|
|
30
30
|
[tool]
|
31
31
|
[tool.commitizen]
|
32
32
|
name = "cz_conventional_commits"
|
33
|
-
version = "0.10.
|
33
|
+
version = "0.10.3"
|
34
34
|
tag_format = "$version"
|
35
35
|
version_files = ["pyproject.toml"]
|
36
36
|
|
@@ -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:
|
@@ -185,7 +185,7 @@ def test_basic_movement():
|
|
185
185
|
|
186
186
|
# stays still when bumping into a wall
|
187
187
|
key, step_key = jax.random.split(key)
|
188
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
188
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
189
189
|
assert jnp.array_equal(state.pos, jnp.array([3, 3]))
|
190
190
|
|
191
191
|
key, step_key = jax.random.split(key)
|
@@ -197,7 +197,7 @@ def test_basic_movement():
|
|
197
197
|
assert jnp.array_equal(state.pos, jnp.array([3, 3]))
|
198
198
|
|
199
199
|
key, step_key = jax.random.split(key)
|
200
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
200
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
201
201
|
assert jnp.array_equal(state.pos, jnp.array([3, 2]))
|
202
202
|
|
203
203
|
|
@@ -222,10 +222,10 @@ def test_vision():
|
|
222
222
|
|
223
223
|
# No movement
|
224
224
|
key, step_key = jax.random.split(key)
|
225
|
-
obs, state, _, _, _ = env.step(step_key, state, Actions.
|
225
|
+
obs, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
226
226
|
|
227
227
|
expected = jnp.zeros((3, 3, 1), dtype=int)
|
228
|
-
expected = expected.at[
|
228
|
+
expected = expected.at[2, 1, 0].set(1)
|
229
229
|
|
230
230
|
chex.assert_trees_all_equal(state.pos, jnp.array([3, 3]))
|
231
231
|
chex.assert_trees_all_equal(obs, expected)
|
@@ -234,10 +234,10 @@ def test_vision():
|
|
234
234
|
key, step_key = jax.random.split(key)
|
235
235
|
obs, state, _, _, _ = env.step(step_key, state, Actions.RIGHT, params)
|
236
236
|
key, step_key = jax.random.split(key)
|
237
|
-
obs, state, _, _, _ = env.step(step_key, state, Actions.
|
237
|
+
obs, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
238
238
|
expected = jnp.zeros((3, 3, 1), dtype=int)
|
239
|
-
expected = expected.at[0, 0, 0].set(1)
|
240
239
|
expected = expected.at[1, 0, 0].set(1)
|
240
|
+
expected = expected.at[2, 0, 0].set(1)
|
241
241
|
|
242
242
|
chex.assert_trees_all_equal(state.pos, jnp.array([4, 4]))
|
243
243
|
chex.assert_trees_all_equal(obs, expected)
|
@@ -264,7 +264,7 @@ def test_respawn():
|
|
264
264
|
|
265
265
|
# Collect the flower
|
266
266
|
key, step_key = jax.random.split(key)
|
267
|
-
_, state, reward, _, _ = env.step_env(step_key, state, Actions.
|
267
|
+
_, state, reward, _, _ = env.step_env(step_key, state, Actions.DOWN, params)
|
268
268
|
assert reward == FLOWER.reward_val
|
269
269
|
assert state.object_grid[4, 3] < 0
|
270
270
|
|
@@ -273,11 +273,11 @@ def test_respawn():
|
|
273
273
|
# Step until it respawns
|
274
274
|
for i in range(steps_until_respawn):
|
275
275
|
key, step_key = jax.random.split(key)
|
276
|
-
_, state, _, _, _ = env.step_env(step_key, state, Actions.
|
276
|
+
_, state, _, _, _ = env.step_env(step_key, state, Actions.DOWN, params)
|
277
277
|
assert state.object_grid[4, 3] < 0
|
278
278
|
|
279
279
|
key, step_key = jax.random.split(key)
|
280
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
280
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
281
281
|
assert state.object_grid[4, 3] == flower_id
|
282
282
|
|
283
283
|
|
@@ -291,38 +291,38 @@ def test_wrapping_dynamics():
|
|
291
291
|
# Go up
|
292
292
|
assert jnp.array_equal(state.pos, jnp.array([2, 2]))
|
293
293
|
key, step_key = jax.random.split(key)
|
294
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
294
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
295
295
|
assert jnp.array_equal(state.pos, jnp.array([2, 3]))
|
296
296
|
key, step_key = jax.random.split(key)
|
297
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
297
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
298
298
|
assert jnp.array_equal(state.pos, jnp.array([2, 4]))
|
299
299
|
key, step_key = jax.random.split(key)
|
300
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
300
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
301
301
|
assert jnp.array_equal(state.pos, jnp.array([2, 0]))
|
302
302
|
key, step_key = jax.random.split(key)
|
303
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
303
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
304
304
|
assert jnp.array_equal(state.pos, jnp.array([2, 1]))
|
305
305
|
key, step_key = jax.random.split(key)
|
306
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
306
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
307
307
|
assert jnp.array_equal(state.pos, jnp.array([2, 2]))
|
308
308
|
|
309
309
|
# Go down
|
310
310
|
_, state = env.reset(key, params)
|
311
311
|
assert jnp.array_equal(state.pos, jnp.array([2, 2]))
|
312
312
|
key, step_key = jax.random.split(key)
|
313
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
313
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
314
314
|
assert jnp.array_equal(state.pos, jnp.array([2, 1]))
|
315
315
|
key, step_key = jax.random.split(key)
|
316
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
316
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
317
317
|
assert jnp.array_equal(state.pos, jnp.array([2, 0]))
|
318
318
|
key, step_key = jax.random.split(key)
|
319
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
319
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
320
320
|
assert jnp.array_equal(state.pos, jnp.array([2, 4]))
|
321
321
|
key, step_key = jax.random.split(key)
|
322
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
322
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
323
323
|
assert jnp.array_equal(state.pos, jnp.array([2, 3]))
|
324
324
|
key, step_key = jax.random.split(key)
|
325
|
-
_, state, _, _, _ = env.step(step_key, state, Actions.
|
325
|
+
_, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
326
326
|
assert jnp.array_equal(state.pos, jnp.array([2, 2]))
|
327
327
|
|
328
328
|
# Go right
|
@@ -387,10 +387,10 @@ def test_wrapping_vision():
|
|
387
387
|
|
388
388
|
# go down
|
389
389
|
key, step_key = jax.random.split(key)
|
390
|
-
obs, state, _, _, _ = env.step(step_key, state, Actions.
|
390
|
+
obs, state, _, _, _ = env.step(step_key, state, Actions.UP, params)
|
391
391
|
|
392
392
|
expected = jnp.zeros((3, 3, 1), dtype=int)
|
393
|
-
expected = expected.at[
|
393
|
+
expected = expected.at[0, 0, 0].set(1)
|
394
394
|
|
395
395
|
assert jnp.array_equal(state.pos, jnp.array([1, 1]))
|
396
396
|
assert jnp.array_equal(obs, expected)
|
@@ -402,7 +402,7 @@ def test_wrapping_vision():
|
|
402
402
|
obs, state, _, _, _ = env.step(step_key, state, Actions.LEFT, params)
|
403
403
|
|
404
404
|
expected = jnp.zeros((3, 3, 1), dtype=int)
|
405
|
-
expected = expected.at[
|
405
|
+
expected = expected.at[0, 2, 0].set(1)
|
406
406
|
|
407
407
|
assert jnp.array_equal(state.pos, jnp.array([4, 1]))
|
408
408
|
assert jnp.array_equal(obs, expected)
|
@@ -476,7 +476,7 @@ def test_color_based_partial_observability():
|
|
476
476
|
center_obs = obs[2, 2, :] # MOREL at center
|
477
477
|
morel_obs = obs[2, 3, :] # LARGE_MOREL
|
478
478
|
med_morel_obs = obs[2, 4, :] # MEDIUM_MOREL
|
479
|
-
flower_obs = obs[
|
479
|
+
flower_obs = obs[3, 2, :] # FLOWER (flipped coordinates)
|
480
480
|
|
481
481
|
# All morels should have the same observation (channel 0 activated)
|
482
482
|
chex.assert_trees_all_equal(center_obs, jnp.array([1.0, 0.0]))
|
@@ -616,14 +616,14 @@ def test_benchmark_vision(benchmark):
|
|
616
616
|
@jax.jit
|
617
617
|
def _run(state, key):
|
618
618
|
key, step_key = jax.random.split(key)
|
619
|
-
obs, new_state, _, _, _ = env.step(step_key, state, Actions.
|
619
|
+
obs, new_state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
620
620
|
return obs, new_state
|
621
621
|
|
622
622
|
# warm-up
|
623
623
|
obs, new_state = _run(state, key)
|
624
624
|
|
625
625
|
expected = jnp.zeros((3, 3, 1), dtype=int)
|
626
|
-
expected = expected.at[
|
626
|
+
expected = expected.at[2, 1, 0].set(1)
|
627
627
|
|
628
628
|
chex.assert_trees_all_equal(new_state.pos, jnp.array([3, 3]))
|
629
629
|
chex.assert_trees_all_equal(obs, expected)
|
@@ -674,7 +674,7 @@ def test_benchmark_small_env(benchmark):
|
|
674
674
|
def f(carry, _):
|
675
675
|
state, key = carry
|
676
676
|
key, step_key = jax.random.split(key, 2)
|
677
|
-
_, new_state, _, _, _ = env.step(step_key, state, Actions.
|
677
|
+
_, new_state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
678
678
|
return (new_state, key), None
|
679
679
|
|
680
680
|
(final_state, _), _ = jax.lax.scan(f, (state, key), None, length=1000)
|
@@ -709,7 +709,7 @@ def test_benchmark_big_env(benchmark):
|
|
709
709
|
def f(carry, _):
|
710
710
|
state, key = carry
|
711
711
|
key, step_key = jax.random.split(key, 2)
|
712
|
-
_, new_state, _, _, _ = env.step(step_key, state, Actions.
|
712
|
+
_, new_state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
713
713
|
return (new_state, key), None
|
714
714
|
|
715
715
|
(final_state, _), _ = jax.lax.scan(f, (state, key), None, length=100)
|
@@ -750,7 +750,7 @@ def test_benchmark_vmap_env(benchmark):
|
|
750
750
|
key, step_key = jax.random.split(key, 2)
|
751
751
|
step_keys = jax.random.split(step_key, num_envs)
|
752
752
|
_, new_states, _, _, _ = jax.vmap(env.step, in_axes=(0, 0, None, None))(
|
753
|
-
step_keys, states, Actions.
|
753
|
+
step_keys, states, Actions.DOWN, params
|
754
754
|
)
|
755
755
|
return (new_states, key), None
|
756
756
|
|
@@ -786,7 +786,7 @@ def test_benchmark_small_env_color(benchmark):
|
|
786
786
|
def f(carry, _):
|
787
787
|
state, key = carry
|
788
788
|
key, step_key = jax.random.split(key, 2)
|
789
|
-
_, new_state, _, _, _ = env.step(step_key, state, Actions.
|
789
|
+
_, new_state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
790
790
|
return (new_state, key), None
|
791
791
|
|
792
792
|
(final_state, _), _ = jax.lax.scan(f, (state, key), None, length=100)
|
@@ -818,7 +818,7 @@ def test_benchmark_small_env_world(benchmark):
|
|
818
818
|
def f(carry, _):
|
819
819
|
state, key = carry
|
820
820
|
key, step_key = jax.random.split(key, 2)
|
821
|
-
_, new_state, _, _, _ = env.step(step_key, state, Actions.
|
821
|
+
_, new_state, _, _, _ = env.step(step_key, state, Actions.DOWN, params)
|
822
822
|
return (new_state, key), None
|
823
823
|
|
824
824
|
(final_state, _), _ = jax.lax.scan(f, (state, key), None, length=100)
|
File without changes
|
File without changes
|
{continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/requires.txt
RENAMED
File without changes
|
{continual_foragax-0.10.2 → continual_foragax-0.10.3}/src/continual_foragax.egg-info/top_level.txt
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|