Update README.md
Browse files
README.md
CHANGED
|
@@ -36,19 +36,12 @@ augmented_grids[0] = [[0, 1, 0], [1, 0, 1], [0, 1, 0]] # Example 3x3 grid
|
|
| 36 |
```
|
| 37 |
|
| 38 |
### Usage
|
| 39 |
-
Load and use for
|
| 40 |
```python
|
| 41 |
from datasets import load_dataset
|
| 42 |
ds = load_dataset("JDWebProgrammer/arc-agi-augmented")
|
| 43 |
-
grids = ds['
|
| 44 |
|
| 45 |
-
# Example: Batch grids for AE
|
| 46 |
-
def grid_to_tensor(grid):
|
| 47 |
-
h, w = len(grid), len(grid[0])
|
| 48 |
-
return torch.tensor(grid, dtype=torch.float).view(1, -1) / 10.0 # Normalize 0-1
|
| 49 |
-
|
| 50 |
-
batch = torch.cat([grid_to_tensor(g) for g in grids[:32]]) # Batch of 32
|
| 51 |
-
# Feed to AE: z = ae.encode(batch); recon = ae.decode(z)
|
| 52 |
```
|
| 53 |
|
| 54 |
Ideal for:
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
### Usage
|
| 39 |
+
Load and use for pretraining:
|
| 40 |
```python
|
| 41 |
from datasets import load_dataset
|
| 42 |
ds = load_dataset("JDWebProgrammer/arc-agi-augmented")
|
| 43 |
+
grids = ds['augmented_grids'] # List of all grids
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
Ideal for:
|