File size: 2,364 Bytes
79d3473
 
 
6ad3fe0
 
 
79d3473
6ad3fe0
 
79d3473
6ad3fe0
 
79d3473
 
 
 
 
2451910
2b9b8e8
 
79d3473
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2b9b8e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
pretty_name: TabGenBench downstream task masks
tags:
- tabular
- benchmark
- imputation
task_categories:
- tabular-classification
- tabular-regression
size_categories:
- 1M<n<10M
license: apache-2.0
---


# TabGenBench downstream task masks

This repository stores the fixed masks of the [TabGenBench](https://github.com/granica-ai/tabgen-bench/) downstream tasks:
for each of the benchmark's 28 tables, which features of the test split are masked 
for prediction or imputation tasks.

This repository holds **masks only**. A mask is a list of `[row, column]` positions
of the prepared test split in TabGenBench. The package downloads and checks them on
first use automatically:

```python
import tabgen_bench as tgb

tgb.list_downstream_tasks("sdss_17")
# ('prediction', 'imputation_30', 'imputation_50')

task = tgb.load_downstream_task("sdss_17", "imputation_50")
observed, targets = task["observed"], task["targets"]
```

`observed` sets the hidden cells to `np.nan`; `targets` reveals those values.

After download, the folder structure looks like
```
<data root>/
├── downstream/                        from this repository
├── prepared/                          built by the package
├── raw/                               the original table, from TabArena/BeyondArena
└── table_sources/                     the package's verification records
```

## Tasks

Every table has the same three tasks.

| Task | What is hidden |
| --- | --- |
| `prediction` | The associated supervised targeting column |
| `imputation_30` | 30% columns, chosen at random for each row |
| `imputation_50` | 50% columns, chosen at random  for each row |

## Files

```
downstream/<table>.npz     the positions, one array per task
downstream/<table>.json    the manifest that describes and binds them
```

There are 56 files, 83 MB in all.

`<table>.npz`:
One array per task, named `positions_0`, `positions_1`, `positions_2`, 
representing `prediction`, `imputation_30`, `imputation_50`.
Each array has shape `(hidden cells, 2)`. A row of it is
`[row_index, column_index]` for the prepared test split.
The arrays are plain numeric data and load with `allow_pickle=False`.

`<table>.json`: metadata and checksums for the associated masks.

## Licence

The tables themselves stay under the licences of their original sources and
are not redistributed here.