Skip to content

FelixChop/arc-agi-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arc-agi-2

This repository helps to visualize the tasks in the ARC-AGI-2 dataset and to create analyses of shapes for each task.

Installation

Install the Python dependencies using pip:

pip install -r requirements.txt

How to use

Reading the data

from arcagi.data import Arcagi2
data = Arcagi2().get_data()

Reading and visualizing a task

from arcagi.task import Task
task = Task(data['training_challenges']['009d5c81'])
task

> output

alt text


task.is_same_size_all_input_output()

> output False


task.is_same_size_each_input_output()

> output True


Analyzing the shapes within a grid of a task

from arcagi.grid import Grid
g = Grid(task.train[0]['input'])
g

> output

alt text


from arcagi.shapes import Shapes
s = Shapes(g.grid, g.shapes[2]) # there are 2 types of shape, g.shapes[1] and g.shapes[2], without or with diagonals
s

> output

alt text


from arcagi.grid import Grid
g = Grid(task.train[0]['output'])
g

> output

alt text

s = Shapes(g.grid, g.shapes[2])
s

> output

alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published