Refactor build arc dataset#4
Open
fraserprice wants to merge 7 commits into
Open
Conversation
ajaychandra23
approved these changes
Aug 4, 2025
|
|
||
|
|
||
| @dataclass | ||
| class ARCPuzzle: |
| split: RawArcSplit | ||
| examples: list[PuzzleExample] | ||
|
|
||
| examples: List[Tuple[np.ndarray, np.ndarray]] |
There was a problem hiding this comment.
List[Tuple[np.ndarray, np.ndarray]]
please check this list function and add tuples in it
| model_config = ConfigDict(arbitrary_types_allowed=True) | ||
|
|
||
|
|
||
| def arc_grid_to_np(grid: List[List[int]]): |
There was a problem hiding this comment.
#18 add list into it and gird function as well as
| return arr.astype(np.uint8) | ||
|
|
||
|
|
||
| def np_grid_to_seq_translational_augment(inp: np.ndarray, out: np.ndarray, do_translation: bool): |
There was a problem hiding this comment.
and translate into models @liamnorm
| with open(filepath) as f: | ||
| data = json.load(f) | ||
|
|
||
| return hashlib.sha256(b"".join(buffer)).hexdigest() |
There was a problem hiding this comment.
please chek out this return function and add buffer function to it
| hashes = [] | ||
| for example_type, example in puzzle.items(): | ||
| for input, label in example.examples: | ||
| hashes.append(f"{_grid_hash(input)}|{_grid_hash(label)}") |
There was a problem hiding this comment.
justify the class name and give inputs to it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.