Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
a
list
index
int32
0
999
u
list
[[3.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0(...TRUNCATED)
0
[[8.819529284664895e-6,0.000017458774891565554,0.00002250657598779071,0.000028289843612583354,0.0000(...TRUNCATED)
[[12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.(...TRUNCATED)
1
[[4.551251095108455e-6,0.000012249026440258604,0.000018832777641364373,0.000024758019208093174,0.000(...TRUNCATED)
[[3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.(...TRUNCATED)
2
[[0.000015070832887431607,0.00003959684181609191,0.00005967651668470353,0.00007713840022915974,0.000(...TRUNCATED)
[[3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.(...TRUNCATED)
3
[[0.000013452796338242479,0.000034764430893119425,0.0000516928375873249,0.0000661023732391186,0.0000(...TRUNCATED)
[[12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,3.0,3.0,3.0,3.0,3.(...TRUNCATED)
4
[[4.475001333048567e-6,0.000012021772818116006,0.000018461898434907198,0.00002426333594485186,0.0000(...TRUNCATED)
[[12.0,12.0,12.0,12.0,12.0,12.0,3.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0(...TRUNCATED)
5
[[4.3780592022812925e-6,0.000011757122592825908,0.00001812164373404812,0.000024070073777693324,0.000(...TRUNCATED)
[[3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,12.0,12.0,12.0,3.0,3.0,3.0(...TRUNCATED)
6
[[0.000015070180779730435,0.00003960193134844303,0.000059708618209697306,0.00007723316230112687,0.00(...TRUNCATED)
[[3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.(...TRUNCATED)
7
[[0.000015203027942334302,0.00003999235559604131,0.0000603321022936143,0.00007804860797477886,0.0000(...TRUNCATED)
[[12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,12.0,12.0,12(...TRUNCATED)
8
[[4.468881343200337e-6,0.000011952481145272031,0.000018155380530515686,0.00002336000579816755,0.0000(...TRUNCATED)
[[3.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0,12.0(...TRUNCATED)
9
[[9.326889994554222e-6,0.00001933968269440811,0.00003172034848830663,0.00003850377106573433,0.000043(...TRUNCATED)
End of preview. Expand in Data Studio

2-D Darcy flow, Li et al. (2021) operator-learning benchmark (1200 coefficient / pressure pairs, 128 x 128)

-div(a grad u) = 1 on the unit square, u = 0 on the boundary. Coefficients a = 12 where g >= 0 and 3 where g < 0, g ~ N(0, (-Laplacian + 9 I)^-2) (Li et al. 2021, section 5.2). g is drawn as a periodic Gaussian random field on the 128 x 128 cell grid (Li et al. use a cosine expansion on 421 nodes), so a is piecewise constant on the cells of the stored grid. The task maps a to u. Cell centres ((i + 1/2) / 128, (j + 1/2) / 128); u is the cell average of the solution.

darcy_2d_li2021 v1.0.0 (revision v1.0.0.post1) · licence cc-by-4.0 · part of the PINNeAPPle zoo

Configs and splits

Config Split Samples Parquet rows Parquet files Content
default train 1000 1000 1 1000 pairs
default test 200 200 1 200 pairs (held out)

Split rule: rows 0-999 are train, 1000-1199 test; inputs are i.i.d. draws, so the contiguous split is a random split

Columns

Column Unit Type Description
a - float32[128, 128] permeability on the 128 x 128 cells (values 3 and 12)
index - int32 sample index (row of the generated set)
u - float32[128, 128] pressure, cell averages on the 128 x 128 cells

Load

With the library (the npz files, SHA-256 checked; arrays with their full shape):

pip install "pinneapple @ git+https://github.com/PINNeAPPle-Labs/PINNeAPPle"
import pinneapple as pp

d = pp.datasets.load("darcy_2d_li2021", split="test")
print(d.n_rows, d.columns)
print(d["a"].shape)

With datasets (the Parquet files of this repo):

from datasets import load_dataset

ds = load_dataset("PINNeAPPle-Labs/darcy-2d-li2021", split="test", revision="v1.0.0.post1")
print(ds)
ds = ds.with_format("numpy")
print(ds[0]["a"].shape)

Provenance

python scripts/zoo/operator_data.py generate --out DIR (inputs drawn from fixed seeds in the parent process, so the data do not depend on the number of workers); solvers in pinneapple_simulation.numerical_solvers.operator_benchmarks, written from the equations; seed 20212

Verification

Solver (cell-centred two-point-flux finite volumes, harmonic face coefficients, sparse direct solve) checked in tests/test_operator_benchmarks.py on a manufactured variable-coefficient solution (second order, max error < 2e-3 at 64^2). Each sample is solved on the 512^2 grid (the piecewise-constant coefficient is represented exactly on every refinement) and averaged onto its 128^2 cells. Grid study on 4 held-aside inputs against 1024^2: max rel. L2 error 4.6e-3 (128^2), 1.6e-3 (256^2), 4.3e-4 (512^2, the dataset); observed order 1.36 / 1.21 (reduced from 2 by the coefficient jumps); Richardson estimate of the dataset's discretisation error ~8e-4 rel. L2, ten times below the ~1e-2 operator-learning methods reach on this task. u > 0 and below the a = 3 bound 1/24 in every sample.

Files

The npz files are the library's format and the source of truth: pp.datasets.load downloads them from this repo at the tagged revision and refuses any file whose SHA-256 differs from the manifest of the package. The Parquet files under data/ are derived from them by pinneapple_hub.zoo.parquet.write_dataset and hold the same numbers (a test round-trips npz -> Parquet -> arrays bit for bit); they are what the dataset viewer and load_dataset read.

File Size SHA-256
train.npz 59.2 MB e32d8114482e9bcef831ab291938bbe0fd9306a24fb675d95a5735a98d1cc72d
test.npz 11.8 MB c7f7b49deb5eff530405f44a8b2f8246d8c666b898b32ebeb6a18e82b049e89e

Total 71.1 MB of npz.

Citation

Li Z., Kovachki N., Azizzadenesheli K., Liu B., Bhattacharya K., Stuart A., Anandkumar A. (2021). Fourier Neural Operator for Parametric Partial Differential Equations. ICLR 2021, arXiv:2010.08895. Data generated with PINNeAPPle's reference solvers (pinneapple_simulation.numerical_solvers.operator_benchmarks); PINNeAPPle, Zenodo DOI 10.5281/zenodo.23343062.

Cite

If you use this dataset, please cite PINNeAPPle (software, Zenodo DOI 10.5281/zenodo.23343062; see CITATION.cff):

@software{pinneapple,
  author = {Barros, Yan and Schiassi, Enrico},
  title  = {PINNeAPPle},
  doi    = {10.5281/zenodo.23343062},
  url    = {https://github.com/PINNeAPPle-Labs/PINNeAPPle}
}
Downloads last month
345

Paper for PINNeAPPle-Labs/darcy-2d-li2021