arckit icon indicating copy to clipboard operation
arckit copied to clipboard

print the grid in terminal, modified based on PR #2

Open LuxxxLucy opened this issue 1 year ago • 2 comments

Re-work #2 but take numpy array as input.

Example usage:

import arckit
import arckit.vis as vis

# Load the training data
train_set, eval_set = arckit.load_data()

# Get the first task
task = train_set[0]

# Loop through the training examples
for i, (input_array, output_array) in enumerate(task.train):
    print(f"Training Example {i+1}")
    print("Input:")
    vis.print_grid(input_array)
    print("Output:")
    vis.print_grid(output_array)
    print()

which has the same visual result as in #2

image

LuxxxLucy avatar Nov 08 '24 06:11 LuxxxLucy

This is great, thank you! Could we add an example to the README?

https://github.com/mxbi/arckit/blob/main/README.md?plain=1#L116

mxbi avatar Nov 11 '24 13:11 mxbi

script snippet and image added to RAEDME.

LuxxxLucy avatar Nov 11 '24 22:11 LuxxxLucy

Thank you for the changes! Sorry for the late merge, it's been a while since this repo has had some love.

mxbi avatar Aug 08 '25 18:08 mxbi