Update dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- tabular-classification
|
| 7 |
+
- tabular-regression
|
| 8 |
+
tags:
|
| 9 |
+
- tabular
|
| 10 |
+
- synthetic
|
| 11 |
+
- pretraining
|
| 12 |
+
- in-context-learning
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100M<n<1B
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Tabula Pretraining Corpus v2
|
| 18 |
+
|
| 19 |
+
A large-scale synthetic tabular dataset for pretraining transformer-based in-context learning models for tabular data (similar to TabPFN).
|
| 20 |
+
|
| 21 |
+
## Overview
|
| 22 |
+
|
| 23 |
+
| Metric | Value |
|
| 24 |
+
|--------|-------|
|
| 25 |
+
| Total rows | 272,271,776 |
|
| 26 |
+
| Total datasets | 10,867 |
|
| 27 |
+
| Shards | 135 |
|
| 28 |
+
| Mean utility AUC | 0.851 |
|
| 29 |
+
| Format | Parquet (float32) |
|
| 30 |
+
|
| 31 |
+
## Schema
|
| 32 |
+
|
| 33 |
+
Each shard is a Parquet file with a fixed-width schema:
|
| 34 |
+
|
| 35 |
+
- **feat_0** through **feat_63**: Float32 feature columns. Unused slots are NaN.
|
| 36 |
+
- **target**: Float32 target variable (classification label or regression target).
|
| 37 |
+
- **_source_meta**: JSON string with dataset metadata including:
|
| 38 |
+
- `generator`: Which synthetic generator produced this dataset
|
| 39 |
+
- `task_type`: "binary", "multiclass", or "regression"
|
| 40 |
+
- `n_features`: Number of active features (rest are NaN-padded)
|
| 41 |
+
- `n_classes`: Number of target classes
|
| 42 |
+
- `n_samples`: Number of rows in the original dataset
|
| 43 |
+
- `domain`: Semantic domain (finance, health, etc.)
|
| 44 |
+
- `feature_names`: Original domain-specific column names
|
| 45 |
+
|
| 46 |
+
## Generators
|
| 47 |
+
|
| 48 |
+
| Generator | Datasets |
|
| 49 |
+
|-----------|----------|
|
| 50 |
+
| GaussianMixture | 3,029 |
|
| 51 |
+
| Polynomial | 2,738 |
|
| 52 |
+
| SCM | 2,674 |
|
| 53 |
+
| TreePrior | 2,096 |
|
| 54 |
+
| Regression | 325 |
|
| 55 |
+
| MixedType_GaussianMixture | 2 |
|
| 56 |
+
| MixedType_SCM | 2 |
|
| 57 |
+
| MixedType_TreePrior | 1 |
|
| 58 |
+
|
| 59 |
+
## Task Types
|
| 60 |
+
|
| 61 |
+
| Type | Datasets |
|
| 62 |
+
|------|----------|
|
| 63 |
+
| binary | 8,396 |
|
| 64 |
+
| multiclass | 2,146 |
|
| 65 |
+
| regression | 325 |
|
| 66 |
+
|
| 67 |
+
## Domains
|
| 68 |
+
|
| 69 |
+
| Domain | Datasets |
|
| 70 |
+
|--------|----------|
|
| 71 |
+
| hr | 1,033 |
|
| 72 |
+
| education | 1,031 |
|
| 73 |
+
| telecom | 1,028 |
|
| 74 |
+
| science | 1,020 |
|
| 75 |
+
| iot | 1,005 |
|
| 76 |
+
| finance | 1,000 |
|
| 77 |
+
| health | 985 |
|
| 78 |
+
| ecommerce | 977 |
|
| 79 |
+
| logistics | 972 |
|
| 80 |
+
| environment | 935 |
|
| 81 |
+
| manufacturing | 881 |
|
| 82 |
+
|
| 83 |
+
## Quality Gates
|
| 84 |
+
|
| 85 |
+
Every generated dataset passes quality gates before inclusion:
|
| 86 |
+
- **No constant columns** — all features must vary
|
| 87 |
+
- **No all-null columns**
|
| 88 |
+
- **Minority class fraction ≥ 5%** for classification
|
| 89 |
+
- **Duplicate row fraction ≤ 30%**
|
| 90 |
+
- **RF utility AUC ≥ 0.55** — a Random Forest must achieve above-chance cross-validated AUC
|
| 91 |
+
|
| 92 |
+
Gate failure rate: 22.4%
|
| 93 |
+
|
| 94 |
+
## Data Augmentation
|
| 95 |
+
|
| 96 |
+
- **Missingness injection**: ~30% of datasets have random missing values injected
|
| 97 |
+
- **Concept drift**: ~20% of datasets have feature distribution shifts
|
| 98 |
+
|
| 99 |
+
## Usage
|
| 100 |
+
|
| 101 |
+
```python
|
| 102 |
+
from datasets import load_dataset
|
| 103 |
+
|
| 104 |
+
ds = load_dataset("avewright/tabula-pretraining-corpus-v2", split="train", streaming=True)
|
| 105 |
+
|
| 106 |
+
for batch in ds.iter(batch_size=512):
|
| 107 |
+
features = batch["feat_0"] # access individual features
|
| 108 |
+
target = batch["target"]
|
| 109 |
+
meta = batch["_source_meta"] # JSON metadata string
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## License
|
| 113 |
+
|
| 114 |
+
Apache 2.0
|