This release is a pre-release and may not be stable for production use.
Data Foundry: a Schema and Toolkit for Curating Tabular ML Datasets
| 📂 Examples | 🗂️ Curation Log | 🚀 Getting Started | 🧑🔬 Contribute a Dataset | 📄 Paper |
|---|
Data Foundry is the data layer behind the next generation of TabArena datasets. It provides:
- A small, opinionated schema for tabular datasets, tasks (IID / temporal non-IID / grouped non-IID), and outer CV splits — aligned with OpenML where possible, extended where it had to be.
- A curation toolkit so a curator turns a raw download into a reproducible artifact: one
dataset.pydefinition per dataset (data_foundry.definition), with the split protocol, sanity checks, bundle checks and a generated evidence page built in. - A collections API that pins datasets (defined by
(unique_name, uuid)) to immutable curated containers and resolves them against a local warehouse or directly against Hugging Face, as for the BeyondArena Datasets. It is how every collection ships, BeyondArena today and TabArena v0.2 next. - A git-native curation log + dashboard — the dataset backlog lives as one markdown record per candidate dataset under
curation/records/, edited locally through a Sheets-like dashboard (data-foundry-curation serve) with a built-in Guidelines tab, and published as a read-only public site on GitHub Pages. It replaces the old curation spreadsheet; a new dataset is added simply by creating a markdown file.
⚡ Quickstart
pip install data-foundry
from data_foundry.collections import BEYOND_ARENA
container = BEYOND_ARENA.get_dataset("airfoil_self_noise")
print(container.describe()) # full identity + dtypes + task + splits
print(container.dataset.shape) # the actual DataFrame
print(container.task_metadata.split_regime) # "iid", "temporal_non_iid", or "grouped_non_iid"
The scripts in examples/ (for example examples/benchmark_on_beyond_arena.py, a Random Forest on the data) are not part of the PyPI package: run them from a clone (From source).
🕹️ Use Cases
🧪 Inspect a curated container offline — no Hugging Face download required
The package ships a toy CuratedContainer so you can poke at the full API — schema, dtypes, splits, describe() — without touching the network. Identical interface to a downloaded BeyondArena container.
from data_foundry.curation_container import CuratedContainer
from data_foundry.examples import get_toy_container_path
container = CuratedContainer.load(get_toy_container_path())
print(container.describe()) # full identity + dtypes + task + splits
print(container.dataset.shape) # the actual DataFrame
print(container.task_metadata.split_regime) # "iid", "temporal_non_iid", or "grouped_non_iid"
Full inspection script (every metadata field printed): examples/load_curated_container.py.
📦 Use one dataset — IID and non-IID variants
Download a single BeyondArena container by name (or UUID) and fit on its outer CV splits through the task view. The collection resolves the container against your local cache; subsequent runs hit disk, not the network.
from data_foundry.collections import BEYOND_ARENA
task = BEYOND_ARENA.get_dataset("airfoil_self_noise").task()
for fold in task.folds(): # the shipped splits; fold.train stays within a row budget
model.fit(task.X(fold.train), task.y(fold.train), sample_weight=task.train_weight(fold.train))
score = task.score(task.y(fold.test), model.predict(task.X(fold.test)), fold.test)
print(task.metric.name, score, task.error(score)) # the error: lower is better, 0 at the metric's best value
task.X holds only the model inputs (no target, group, scoring or unit column, no time column that dates the label), task.train_weight is the training weight or None, and task.score scores by the container's metric spec. docs/benchmark_integration.md is the page for connecting a benchmark harness: the task view, the row budget, the inputs, the weights, scoring and errors. A minimal adapter is examples/minimal_adapter.py.
Full worked example (Random Forest, RMSE per fold, full metadata via container.describe()): examples/benchmark_on_beyond_arena.py.
Split regimes. A collection ships datasets from three regimes — which one a dataset is in shows up directly on task_metadata:
| Regime | Set on task_metadata |
Meaning |
|---|---|---|
| IID | neither time_on nor group_on |
rows are independent; random / stratified splits |
| temporal non-IID | time_on set |
rows ordered in time; future rows must not leak backwards |
| grouped non-IID | group_on set (+ group_labels) |
all rows of a group stay together in one fold |
Container formats. container.format_version is 2 for a container built by a dataset.py definition (the
TabArena v0.2 working copy and every new dataset) and 1 for the shipped BeyondArena containers, which were built
with Data Foundry v1 (DATA_FOUNDRY_V1.md); a format-2 container also states it in
container_metadata.json. The collections API, CuratedContainer.load and the task view (container.task()) read both:
format 1 gets its metric name as a spec and no weights; format 2 also saves the task view as benchmark_task.json next to
its metadata (derived, outside the checksum), for readers without Data Foundry. Both read the same through task_metadata.time_on,
group_on, group_labels and group_time_on. Format 2 stores the group fields once, in a Grouping
(data_foundry.schema.Grouping), and container.grouping returns it: the prediction unit (a row, or one prediction
per group with an aggregation such as mean or any), what a model may know about a group when predicting, and the
definition of a group with its source. A format-1 container has no such block, so container.grouping returns
None there. The group column is split and scoring metadata, never a model feature. A format-2 container keeps its outer
splits in a row table, rows.parquet: one row per row of dataset.parquet, one column per split
(split_r<repeat>_f<fold>) holding train, test or nothing, so it opens in any Parquet reader next to the data
(examples/read_metric_without_data_foundry.py reads it without Data
Foundry); container.experiment_metadata.splits returns the same {repeat: {fold: (train, test)}} for either
layout, every side in row order. run_bundle_checks judges each
format by its own split protocol (v1: the repeat ladder, 1M train and 250k test rows; v2: 3 folds, and the test cap
of the experiment_metadata.row_budget a _1m version records: no size limit without one).
Row budget. A format-2 container with a row_budget (a <name>_1m version) caps its test sides and keeps every
train row, and fold.train of container.task().folds() is the sample of at most row_budget.train rows a benchmark
fits on; the details are in docs/benchmark_integration.md.
Checksums. container.verify() recomputes a container's checksum and compares it with the stored one (with
get_dataset(..., verify=True) a collection does it on load). A container built since 2026-10-06 has a version-2
checksum (v2:<hex>): it also covers each categorical column's categories, their order and ordered (saved in
categories.json, since dtypes.json only says category), and the unlabeled test set through its own
test_dataset_checksum; a new container needs the index 0..n-1 and string column names. A checksum without the
prefix is version 1 (every shipped BeyondArena container) and keeps verifying as it always did.
Side-by-side regime printout (one IID, two grouped variants — per_group vs per_sample — and one temporal): examples/data_foundry_data_regimes.py.
🗂️ Use a collection of datasets — pre-download all of BeyondArena
A collection pins its datasets by (unique_name, uuid) and resolves them against a source (Hugging Face, or a local warehouse); list_collections() and get_collection(name) find the registered ones. BEYOND_ARENA is the first, and the TabArena v0.2 collection will be registered the same way. BEYOND_ARENA.prefetch(...) batches every container into a single Hugging Face snapshot_download call (one network round-trip for the whole collection). On a warm cache it skips importing huggingface_hub entirely.
BeyondArena's containers are the April 2026 builds and stay pinned, so an old task can still carry a leak that its v2 folder has since fixed; the v2 folders are the latest state (known issues).
from data_foundry.collections import BEYOND_ARENA
paths = BEYOND_ARENA.prefetch() # warms the cache once
for container in BEYOND_ARENA.iter_containers(): # now hits disk only
print(container.dataset_metadata.unique_name, container.dataset.shape)
Cache management:
BEYOND_ARENA.clear_cache() # nuke this collection's subdir
BEYOND_ARENA.get_dataset(name, force_download=True) # re-fetch a single container
Full worked example with tqdm progress + checksum verification: examples/download_all_beyond_arena_datasets.py.
🧑🔬 Curate a dataset — turn a raw download into a CuratedContainer
A dataset is one class in a dataset.py: flat attributes for the metadata and the task, and hooks for reading and
cleaning. The base class adds the dtype casts, the row order, the split protocol, the checks and the export. A
complete small definition (blood_transfusion),
shortened:
import pandas as pd
from data_foundry.definition import AbstractCuratedDataset, Source
class BloodTransfusion(AbstractCuratedDataset):
unique_name = "blood_transfusion"
domain = "medical & healthcare"
sources = (
Source(
role="publication",
platform="UCI",
url="https://doi.org/10.24432/C5GS39",
license="CC BY 4.0",
year="2008",
bibtex="""
@article{yeh2009knowledge, title={Knowledge discovery on RFM model using Bernoulli sequence}, ...}
""",
),
)
download_description = """
mkdir -p local-data-warehouse/blood_transfusion/ && wget -P local-data-warehouse/blood_transfusion/ <UCI zip> && unzip ...
"""
curation_comments = """
- We renamed the target and mapped binary values to "Yes"/"No".
- Anomaly: the data has a lot of duplicates (29%) and several duplicates with different target values.
"""
target = "DonatedBloodInMarch2007"
problem_type = "binary_classification" # metric roc_auc and a stratified IID split by default
def _load_raw(self, raw_dir):
return pd.read_csv(raw_dir / "transfusion.data")
def _clean(self, raw):
df = raw.set_axis([..., "DonatedBloodInMarch2007"], axis=1)
df["DonatedBloodInMarch2007"] = df["DonatedBloodInMarch2007"].map({1: "Yes", 0: "No"})
return df
A grouped task adds grouping = Grouping(on=..., labels=..., prediction_unit=..., definition=...), a temporal one
temporal = Temporal(on=..., splits=TemporalSplits(...)). Then:
.venv/bin/python -m data_foundry.curation.cli dataset new <unique_name> --root datasets/_dev/tabarena-v0pt2
.venv/bin/python -m data_foundry.curation.cli dataset check datasets/_dev/tabarena-v0pt2/<unique_name> # no save; writes README.md
.venv/bin/python -m data_foundry.curation.cli dataset build datasets/_dev/tabarena-v0pt2/<unique_name> # saves the container (curators)
The contributor flow (the steps, the probes, the Claude Code skills, the practices) is in CONTRIBUTING_DATASETS.md.
🗂️ Triage the dataset backlog — the curation log + local dashboard
Before a dataset becomes a definition, it lives in the curation log: one markdown record
per candidate dataset under curation/records/. Each <unique_name>.md
has YAML front-matter (the structured / dropdown fields) plus a free-text body
(## Comments, ## Reference). Add or triage a dataset by creating/editing its file — by
hand, with an agent, or through the dashboard.
pip install "data-foundry[curation]" # or the editable dev install
data-foundry-curation serve # → http://127.0.0.1:8765
The local, Sheets-like dashboard edits those records in place (filter by status, pin a working row, add dropdown options, …) and ships a built-in Guidelines tab describing the selection criteria and processing conventions. Other CLI subcommands:
data-foundry-curation validate # check records against the dropdown vocab
data-foundry-curation sync-notebooks # refresh each record's notebook_path + v2_path (--check to dry-run)
data-foundry-curation export --format xlsx out.xlsx # flat snapshot (csv|xlsx)
data-foundry-curation build-site site/ # read-only static copy (e.g. GitHub Pages)
data-foundry-curation dataset check <folder> # run a v2 dataset.py + bundle checks, write README.md (no save)
data-foundry probe task <name> # a probe (leak, task, group, ...) on a dataset; needs the probes extra
Browse it online. A read-only copy of the backlog is published to GitHub Pages —
tabarena.github.io/data-foundry — and
regenerated automatically from curation/records/ on every push to main (no install, no
network round-trip to Hugging Face; search, sort, filter, and pin all run in the browser).
Note this makes every record's comments, reviewer names, and decision notes public.
Working with Claude Code? The repo ships five curation commands and two knowledge skills (in .claude/skills/); start
with .claude/skills/README.md, which the dashboard also shows as "Start here". In each of
the two stages the AI works and the curator verifies (the fifth command, /review-split-tree, shows the split decision
tree for review):
| Stage | The AI works | The curator verifies |
|---|---|---|
| Screen: a quick pass from the source, with a priority | /screen-candidates |
/review-screened-candidates (the dashboard) |
| Add: build the dataset and attack it with a review panel | /add-dataset |
/review-added-datasets (the review page) |
The knowledge skills, knowledge-curation (how we decide and curate, as
ranked rules) and knowledge-data-foundry (how this repo implements
it), hold what every command applies; builds and commits happen only when the curator asks.
Loading, browsing and benchmarking shipped datasets needs no command;
docs/benchmark_integration.md and examples/ cover it.
🪄 Installation
📦 From PyPI — use Data Foundry as a library
pip install data-foundry # load and use curated datasets
pip install "data-foundry[benchmark]" # also score them (scikit-learn, scipy)
pip install "data-foundry[build]" # also build datasets from their definitions
🌱 From source — clone and install editable
git clone https://github.com/TabArena/data-foundry.git
cd data-foundry
uv pip install -e .
🛠️ Developer setup — extras for curation, tests, and tooling
git clone https://github.com/TabArena/data-foundry.git
cd data-foundry
uv pip install -e ".[dev]"
pytest # run the test suite
uvx ruff@0.15.15 check . && uvx ruff@0.15.15 format --check . # lint + format, as CI does
Loading and using a container needs only the core install; the benchmark extra adds scikit-learn and scipy, which
the metrics import when they score. The build extra adds what building a dataset from its
definition needs: scikit-learn for the splits, scipy for the checks, and the readers the definitions use
(liac-arff, openml, polars, the Excel engines, matplotlib). The probes extra adds LightGBM for the probes
(data-foundry probe ...). tests adds build, probes and pytest; dev adds
both plus the curation tools (autogluon, kaggle, seaborn, ruff, …). pandas 2.3 and 3 build and load the same
containers; the lock stays on pandas 2 because AutoGluon (and so TabArena) requires pandas below 2.4.
🗂️ Repository Structure
data-foundry/
├── src/data_foundry/ # the package
│ ├── curation_container.py # CuratedContainer (save/load + describe + checksum), feature_columns and the other helpers
│ ├── collections/ # BEYOND_ARENA, DatasetCollection, HuggingFaceSource, cache helpers
│ ├── schema.py # the format-2 metadata: DatasetMetadataV2, PredictiveMLTaskMetadataV2 (+ Grouping, MetricSpec)
│ ├── metrics.py # every metric of a metric spec and the scorer of a container
│ ├── sampling.py # subsample_train: the default sampler of a train side under a row budget
│ ├── special/, encodings.py # special features (SMILES, spectra) and the recommended encodings
│ ├── definition/ # the definition API (`dataset.py` classes): AbstractCuratedDataset, split protocol, README report
│ ├── v1/ # the format-1 metadata of the shipped BeyondArena containers
│ ├── checks/ # the checks: run_bundle_checks / verify_saved_container, the README tables
│ │ # (run_all_checks), the task and definition checks, registry.py of every slug
│ ├── probes/ # the probes (leak, task, group, hidden groups, time, dtypes, generated): `data-foundry probe`
│ ├── curation/ # curation log toolkit — CurationRecord, store, dashboard (serve), import/export, build-site
│ └── examples/toy_container/ # tiny ready-to-load CuratedContainer shipped in-package
├── curation/ # the curation log (git-tracked data) — records/*.md + vocabularies.yaml
├── datasets/ # dataset definitions; see datasets/README.md
│ ├── _template/ # the template `dataset new` copies (dataset.py)
│ ├── _dev/ # work in progress; `tabarena-v0pt2/` is the TabArena v0.2 working copy
│ ├── _maintenance/ # deprecated, suspended and out-of-scope datasets, the old TabArena v0.1 re-curation
│ └── beyond_iid/ # the shipped BeyondArena notebooks (v1), pinned by `final_uuid_list.py`
├── examples/ # runnable demos (covers the use-cases above); see examples/README.md
├── scripts/ # one-off tooling (toy container builder, release)
├── .claude/skills/ # Claude Code skills; each skill's scripts/ holds the tools it runs
│ ├── knowledge-curation/ # curation knowledge (references/)
│ ├── knowledge-data-foundry/ # this repo's conventions (references/), the pipeline and rebuild scripts
│ └── <command>/ # screen-candidates, review-screened-candidates, add-dataset, review-added-datasets,
│ # review-split-tree
├── .claude/agents/ # the agents of screening and of the review panel
├── tests/ # pytest test suite
└── local-data-warehouse/ # gitignored — curators write raw + saved containers here
🧑🔬 Contributing a Dataset
The short version (v2):
- Scaffold the folder:
.venv/bin/python -m data_foundry.curation.cli dataset new <unique_name> --root datasets/_dev/tabarena-v0pt2(or/add-dataset <unique_name>in Claude Code), and fill indataset.py. - Run
.venv/bin/python -m data_foundry.curation.cli dataset check <folder>until there are no errors and every warning is fixed or accepted with a reason; it writes the folder'sREADME.md. The checks and their slugs are insrc/data_foundry/checks/(check_slugs.md). Then run the probes:data-foundry probe leak <unique_name>,probe taskand, for a grouped task,probe group(theprobesextra). - Open a PR; a curator runs
dataset build, which saves the container and records its UUID.
The long version is CONTRIBUTING_DATASETS.md; a first contribution to TabArena v0.2 starts with the getting-started guide, which also lists the candidates to work on.
The shipped BeyondArena datasets were built with Data Foundry v1, as curation notebooks pinned in
datasets/beyond_iid/final_uuid_list.py. v1 is retired for new datasets;
DATA_FOUNDRY_V1.md keeps what is needed to read, check or maintain them.
📄 Citation
If you use Data Foundry or the BeyondArena datasets, please cite:
Beyond IID: How General Are Tabular Foundation Models, Really? Lennart Purucker, Andrej Tschalzev, Nick Erickson, Gioia Blayer, David Holzmüller, Alan Arazi, Alexander Pfefferle, Mustafa Tajjar, Gaël Varoquaux, Frank Hutter. arXiv:2606.30410, 2026. https://arxiv.org/abs/2606.30410
@misc{purucker2026iidgeneraltabularfoundation,
title={Beyond IID: How General Are Tabular Foundation Models, Really?},
author={Lennart Purucker and Andrej Tschalzev and Nick Erickson and Gioia Blayer and David Holzmüller and Alan Arazi and Alexander Pfefferle and Mustafa Tajjar and Gaël Varoquaux and Frank Hutter},
year={2026},
eprint={2606.30410},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2606.30410},
}
Metadata
Release files for data-foundry 0.0.6.dev20261127234600
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| data_foundry-0.0.6.dev20261127234600.tar.gz | 523.6 kB | Without provenance | Details for data_foundry-0.0.6.dev20261127234600.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_foundry-0.0.6.dev20261127234600-py3-none-any.whl | Python 3 | none | any | Details for data_foundry-0.0.6.dev20261127234600-py3-none-any.whl |
Total release size: 1.1 MB
Release files / data_foundry-0.0.6.dev20261127234600.tar.gz
| Download URL | data_foundry-0.0.6.dev20261127234600.tar.gz |
|---|---|
| Size | 523.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7476d86aec38c0f0d6dfee549ff8e1742aa3c7b4789bc74c6cb122a3d2a271e3
|
|
BLAKE2b-256 checksum How to use checksums |
99278167246e493b57438c09cf11f37f1589d146056949cf189eebfd5e49b5ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / data_foundry-0.0.6.dev20261127234600-py3-none-any.whl
| Download URL | data_foundry-0.0.6.dev20261127234600-py3-none-any.whl |
|---|---|
| Size | 564.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
736377f81c684dfeaa19b47e495380ed080fe4b50292dab2ab2b30996d3abc78
|
|
BLAKE2b-256 checksum How to use checksums |
08bc25c6159e8d87c46e71b866da309d7ceee431c233a9450dee050a2c7539cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for data-foundry 0.0.6.dev20261127234600
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.