Datasets:
Regenerate data from 114fccdc
Browse files- README.md +82 -0
- metadata.json +118 -0
- test.parquet +3 -0
- train.parquet +3 -0
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
pretty_name: DeepONet linear ODE data
|
| 4 |
+
task_categories:
|
| 5 |
+
- tabular-regression
|
| 6 |
+
tags:
|
| 7 |
+
- deeponet
|
| 8 |
+
- operator-learning
|
| 9 |
+
- ode
|
| 10 |
+
- physics
|
| 11 |
+
- synthetic
|
| 12 |
+
size_categories:
|
| 13 |
+
- n<10K
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: default
|
| 16 |
+
data_files:
|
| 17 |
+
- split: train
|
| 18 |
+
path: train.parquet
|
| 19 |
+
- split: test
|
| 20 |
+
path: test.parquet
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# DeepONet linear ODE data
|
| 24 |
+
|
| 25 |
+
Synthetic training data for learning the solution operator of the linear
|
| 26 |
+
first-order ODE
|
| 27 |
+
|
| 28 |
+
```
|
| 29 |
+
u'(t) = -k · u(t) + f(t), u(0) = 0, t ∈ [0, 1]
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
with a DeepONet. The input is a pair (f, k): `f` is a random smooth forcing
|
| 33 |
+
function and `k ∈ [0.1, 2]` is a damping constant. The target is the exact
|
| 34 |
+
solution `u(t) = ∫₀ᵗ e^{-k (t-s)} f(s) ds`.
|
| 35 |
+
|
| 36 |
+
Code that generates this dataset and trains a DeepONet on it:
|
| 37 |
+
**https://github.com/tha2002-tech/deeponet-ode-demo**
|
| 38 |
+
|
| 39 |
+
## Splits
|
| 40 |
+
|
| 41 |
+
| split | rows |
|
| 42 |
+
|-------|------|
|
| 43 |
+
| train | 2000 |
|
| 44 |
+
| test | 500 |
|
| 45 |
+
|
| 46 |
+
## Schema
|
| 47 |
+
|
| 48 |
+
| column | type | length | meaning |
|
| 49 |
+
|-------------|-----------------|--------|----------------------------------------------|
|
| 50 |
+
| `f_sensors` | list<float32> | 100 | f evaluated at 100 equally spaced sensors on [0, 1] |
|
| 51 |
+
| `k` | float32 | 1 | damping constant, uniform in [0.1, 2.0] |
|
| 52 |
+
| `t` | list<float32> | 100 | query times (same 100-point grid as the sensors) |
|
| 53 |
+
| `u` | list<float32> | 100 | exact solution at `t` |
|
| 54 |
+
|
| 55 |
+
## Generation
|
| 56 |
+
|
| 57 |
+
- `f` is sampled from a zero-mean Gaussian random field on [0, 1] with an RBF
|
| 58 |
+
kernel of length scale 0.2 and unit variance, on a 991-point grid.
|
| 59 |
+
- `u` is computed by the variation-of-constants integral with the cumulative
|
| 60 |
+
trapezoid rule on that grid (error about 1e-6), then subsampled to the
|
| 61 |
+
100-point sensor grid.
|
| 62 |
+
- Seed 0 for train, seed 0+1 for test.
|
| 63 |
+
- Produced by `scripts/generate_data.py` at commit `114fccdc6e9c6950f192a9f63075cf210bbcbcff` of the
|
| 64 |
+
repository above. `metadata.json` in this repo records all parameters.
|
| 65 |
+
|
| 66 |
+
## Usage
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from datasets import load_dataset
|
| 70 |
+
import numpy as np
|
| 71 |
+
|
| 72 |
+
ds = load_dataset("tha2002-tech/deeponet-ode-data")
|
| 73 |
+
f = np.array(ds["train"]["f_sensors"], dtype=np.float32) # (N, 100)
|
| 74 |
+
k = np.array(ds["train"]["k"], dtype=np.float32) # (N,)
|
| 75 |
+
u = np.array(ds["train"]["u"], dtype=np.float32) # (N, 100)
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
## Reference
|
| 79 |
+
|
| 80 |
+
Lu, L., Jin, P., Pang, G., Zhang, Z., Karniadakis, G. E. (2021). Learning
|
| 81 |
+
nonlinear operators via DeepONet based on the universal approximation theorem
|
| 82 |
+
of operators. *Nature Machine Intelligence* 3, 218–229.
|
metadata.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"seed": 0,
|
| 3 |
+
"n_train": 2000,
|
| 4 |
+
"n_test": 500,
|
| 5 |
+
"n_sensors": 100,
|
| 6 |
+
"n_query": 100,
|
| 7 |
+
"length_scale": 0.2,
|
| 8 |
+
"k_range": [
|
| 9 |
+
0.1,
|
| 10 |
+
2.0
|
| 11 |
+
],
|
| 12 |
+
"sensor_grid": [
|
| 13 |
+
0.0,
|
| 14 |
+
0.010101010101010102,
|
| 15 |
+
0.020202020202020204,
|
| 16 |
+
0.030303030303030304,
|
| 17 |
+
0.04040404040404041,
|
| 18 |
+
0.05050505050505051,
|
| 19 |
+
0.06060606060606061,
|
| 20 |
+
0.07070707070707072,
|
| 21 |
+
0.08080808080808081,
|
| 22 |
+
0.09090909090909091,
|
| 23 |
+
0.10101010101010102,
|
| 24 |
+
0.11111111111111112,
|
| 25 |
+
0.12121212121212122,
|
| 26 |
+
0.13131313131313133,
|
| 27 |
+
0.14141414141414144,
|
| 28 |
+
0.15151515151515152,
|
| 29 |
+
0.16161616161616163,
|
| 30 |
+
0.17171717171717174,
|
| 31 |
+
0.18181818181818182,
|
| 32 |
+
0.19191919191919193,
|
| 33 |
+
0.20202020202020204,
|
| 34 |
+
0.21212121212121213,
|
| 35 |
+
0.22222222222222224,
|
| 36 |
+
0.23232323232323235,
|
| 37 |
+
0.24242424242424243,
|
| 38 |
+
0.25252525252525254,
|
| 39 |
+
0.26262626262626265,
|
| 40 |
+
0.27272727272727276,
|
| 41 |
+
0.2828282828282829,
|
| 42 |
+
0.29292929292929293,
|
| 43 |
+
0.30303030303030304,
|
| 44 |
+
0.31313131313131315,
|
| 45 |
+
0.32323232323232326,
|
| 46 |
+
0.33333333333333337,
|
| 47 |
+
0.3434343434343435,
|
| 48 |
+
0.3535353535353536,
|
| 49 |
+
0.36363636363636365,
|
| 50 |
+
0.37373737373737376,
|
| 51 |
+
0.38383838383838387,
|
| 52 |
+
0.393939393939394,
|
| 53 |
+
0.4040404040404041,
|
| 54 |
+
0.4141414141414142,
|
| 55 |
+
0.42424242424242425,
|
| 56 |
+
0.43434343434343436,
|
| 57 |
+
0.4444444444444445,
|
| 58 |
+
0.4545454545454546,
|
| 59 |
+
0.4646464646464647,
|
| 60 |
+
0.4747474747474748,
|
| 61 |
+
0.48484848484848486,
|
| 62 |
+
0.494949494949495,
|
| 63 |
+
0.5050505050505051,
|
| 64 |
+
0.5151515151515152,
|
| 65 |
+
0.5252525252525253,
|
| 66 |
+
0.5353535353535354,
|
| 67 |
+
0.5454545454545455,
|
| 68 |
+
0.5555555555555556,
|
| 69 |
+
0.5656565656565657,
|
| 70 |
+
0.5757575757575758,
|
| 71 |
+
0.5858585858585859,
|
| 72 |
+
0.595959595959596,
|
| 73 |
+
0.6060606060606061,
|
| 74 |
+
0.6161616161616162,
|
| 75 |
+
0.6262626262626263,
|
| 76 |
+
0.6363636363636365,
|
| 77 |
+
0.6464646464646465,
|
| 78 |
+
0.6565656565656566,
|
| 79 |
+
0.6666666666666667,
|
| 80 |
+
0.6767676767676768,
|
| 81 |
+
0.686868686868687,
|
| 82 |
+
0.696969696969697,
|
| 83 |
+
0.7070707070707072,
|
| 84 |
+
0.7171717171717172,
|
| 85 |
+
0.7272727272727273,
|
| 86 |
+
0.7373737373737375,
|
| 87 |
+
0.7474747474747475,
|
| 88 |
+
0.7575757575757577,
|
| 89 |
+
0.7676767676767677,
|
| 90 |
+
0.7777777777777778,
|
| 91 |
+
0.787878787878788,
|
| 92 |
+
0.797979797979798,
|
| 93 |
+
0.8080808080808082,
|
| 94 |
+
0.8181818181818182,
|
| 95 |
+
0.8282828282828284,
|
| 96 |
+
0.8383838383838385,
|
| 97 |
+
0.8484848484848485,
|
| 98 |
+
0.8585858585858587,
|
| 99 |
+
0.8686868686868687,
|
| 100 |
+
0.8787878787878789,
|
| 101 |
+
0.888888888888889,
|
| 102 |
+
0.8989898989898991,
|
| 103 |
+
0.9090909090909092,
|
| 104 |
+
0.9191919191919192,
|
| 105 |
+
0.9292929292929294,
|
| 106 |
+
0.9393939393939394,
|
| 107 |
+
0.9494949494949496,
|
| 108 |
+
0.9595959595959597,
|
| 109 |
+
0.9696969696969697,
|
| 110 |
+
0.9797979797979799,
|
| 111 |
+
0.98989898989899,
|
| 112 |
+
1.0
|
| 113 |
+
],
|
| 114 |
+
"fine_grid_size": 991,
|
| 115 |
+
"generator": "scripts/generate_data.py",
|
| 116 |
+
"github": "https://github.com/tha2002-tech/deeponet-ode-demo",
|
| 117 |
+
"git_commit": "114fccdc6e9c6950f192a9f63075cf210bbcbcff"
|
| 118 |
+
}
|
test.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7cb74bd6fe55cbd35c222edaec09fb2c5953706e1e9f1c49423153b771af04f
|
| 3 |
+
size 574140
|
train.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:719d4b4654ae89db76fe7dec1eae348e9836b95b7e7d7623bc13d5f9443ccea3
|
| 3 |
+
size 2379314
|