-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Refactor build arc dataset #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Refactor build arc dataset #4
Conversation
|
||
|
||
@dataclass | ||
class ARCPuzzle: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check this data class
split: RawArcSplit | ||
examples: list[PuzzleExample] | ||
|
||
examples: List[Tuple[np.ndarray, np.ndarray]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
justify the class name and give inputs to it
Uh oh!
There was an error while loading. Please reload this page.