An ARC Learning Environment built on Gymnasium
Project description
ARCLE - ARC Learning Environment
ARCLE is a lightweight Gymnasium (previously OpenAI Gym) environment for training on ARC(Abstraction and Reasoning Corpus) and ARC-like datasets.
Requirements
Python >= 3.8
Installation
pip install arcle
Changelogs
0.2.5
-
Python 3.8 Support (minimum requirements of Gymnasium)
-
Env Changes
- Rename
ARCEnv
intoRawARCEnv
in this version. - Removed
MiniARCEnv
. Please useRawARCEnv
withloader=MiniARCLoader()
instead. - New
ARCEnv
added, consisting action space of ARC testing interface given along with the ARC Dataset. - States in every environments are fully observable. All state-related instance variables are now in the
current_state
dictionary.- All operations receives
state
andaction
, and it changesstate
in-place. - You can deepcopy the state and call
env.transition(state_copied, action)
to get next state without changing original state onO2ARCv2Env
.env.transition
will be replaced as separated utility function in the future.
- All operations receives
- n-trial mode added. You canset maximum trials when you call
gym.make()
by putting argumentmax_trial=num
. Unlimited trial mode is available when it is set by -1 (default). - Customizable
Submit
operation. It is defined in each env class as a method, not in a separated module.- You can specify boolean option
reset_on_submit
inenv.reset
(default=False
)
- You can specify boolean option
- Rename
-
Bug fix
FloodFill
operation without selection case fixedPaste
operation out-of-bound case fixedCopyI
operation out-of-bound case fixed- Apply patch exception handling
0.2.2
- Bug fix
- Default all-or-none reward now gives only when submitted. It affects to existing all environments.
0.2.1
- O2ARCv2Env-v0
- Changed
ResizeGrid
action toCropGrid
action - Forced
FloodFill
action to select only one pixel (otherwise, it is NoOP) - Now
CopyI
,CopyO
,Paste
regards black pixels (pixel value 0) as a background. It copies pixels where the value is nonzero and the pixel is selected. action['selection']
can handle int (automatically casts intonp.bool_
)
- Changed
- Several exceptions handling
0.2.0
- ArcEnv-v0 & MiniArcEnv-v0 has renamed to ARCEnv-v0 & MiniARCEnv-v0.
- Changed internal
current_grid
variable togrid
&grid_dim
- Added O2ARCv2Env-v0 environment.
- Added O2ARC Actions
- Uses
selection
andselected
. Some internal variables should be initialized. - Color, Flood Fill(DFS Color)
- Move, Rotate, Flip
- Copy, Paste and Clipboard Features (For O2ARC)
- Uses
0.1.1
- Change Images
- Fix minor issues
0.1.0
- Initial Build.
- ArcEnv-v0 & MiniArcEnv-v0 Launched.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arcle-0.2.5.post3.tar.gz
(342.7 kB
view hashes)
Built Distribution
arcle-0.2.5.post3-py3-none-any.whl
(595.2 kB
view hashes)
Close
Hashes for arcle-0.2.5.post3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 773c82bb0417698f6ef44fda540ca4d0602ceeceb9a550943f9e218c06dc9b31 |
|
MD5 | 03d50f062712c738e76a35a177f051df |
|
BLAKE2b-256 | 4480872426390756c840b7ea702be7b6ebeb54587dc615cb9c00933851930cad |