Write the dataset card of v1
Browse files
README.md
CHANGED
|
@@ -10,6 +10,75 @@ tags:
|
|
| 10 |
- statistical-physics
|
| 11 |
size_categories:
|
| 12 |
- 100K<n<1M
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# samplingdb reference sets
|
|
@@ -20,7 +89,8 @@ these sets. Each one comes from a long MCMC run on the target's own density, and
|
|
| 20 |
convergence and independence before it was published here.
|
| 21 |
|
| 22 |
You do not need to download anything by hand. samplingdb fetches a set the first time it is used,
|
| 23 |
-
checks its sha256, and keeps it in its cache.
|
|
|
|
| 24 |
|
| 25 |
## Quick start
|
| 26 |
|
|
@@ -62,6 +132,27 @@ path = hf_hub_download('h2o64/samplingdb', 'pt/dw4_6b739c6d.npy', repo_type='dat
|
|
| 62 |
x = np.load(path) # (n_samples, dim)
|
| 63 |
```
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
## Files
|
| 66 |
|
| 67 |
Each row of an array is one sample, flattened, in the coordinates the samplingdb target's
|
|
|
|
| 10 |
- statistical-physics
|
| 11 |
size_categories:
|
| 12 |
- 100K<n<1M
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: dw4
|
| 15 |
+
data_files:
|
| 16 |
+
- split: test
|
| 17 |
+
path: viewer/dw4_6b739c6d.parquet
|
| 18 |
+
- config_name: lj13
|
| 19 |
+
data_files:
|
| 20 |
+
- split: test
|
| 21 |
+
path: viewer/lj13_6a0a72c4.parquet
|
| 22 |
+
- config_name: lj55
|
| 23 |
+
data_files:
|
| 24 |
+
- split: test
|
| 25 |
+
path: viewer/lj55_dc3f6b7e.parquet
|
| 26 |
+
- config_name: seeds
|
| 27 |
+
data_files:
|
| 28 |
+
- split: test
|
| 29 |
+
path: viewer/seeds_f9a50f20.parquet
|
| 30 |
+
- config_name: brownian
|
| 31 |
+
data_files:
|
| 32 |
+
- split: test
|
| 33 |
+
path: viewer/brownian_45794097.parquet
|
| 34 |
+
- config_name: lgcp
|
| 35 |
+
data_files:
|
| 36 |
+
- split: test
|
| 37 |
+
path: viewer/lgcp_cea6d9a6.parquet
|
| 38 |
+
- config_name: lgcp-whitened
|
| 39 |
+
data_files:
|
| 40 |
+
- split: test
|
| 41 |
+
path: viewer/lgcp-whitened_30e98363.parquet
|
| 42 |
+
- config_name: breast-cancer
|
| 43 |
+
data_files:
|
| 44 |
+
- split: test
|
| 45 |
+
path: viewer/breast-cancer_543f5f94.parquet
|
| 46 |
+
- config_name: german-credit
|
| 47 |
+
data_files:
|
| 48 |
+
- split: test
|
| 49 |
+
path: viewer/german-credit_3cfdf175.parquet
|
| 50 |
+
- config_name: ionosphere
|
| 51 |
+
data_files:
|
| 52 |
+
- split: test
|
| 53 |
+
path: viewer/ionosphere_d00109c3.parquet
|
| 54 |
+
- config_name: sonar
|
| 55 |
+
data_files:
|
| 56 |
+
- split: test
|
| 57 |
+
path: viewer/sonar_52aa10ef.parquet
|
| 58 |
+
- config_name: trialanine
|
| 59 |
+
data_files:
|
| 60 |
+
- split: test
|
| 61 |
+
path: viewer/aaa-T310_e0bfbee3.parquet
|
| 62 |
+
- config_name: hexaalanine
|
| 63 |
+
data_files:
|
| 64 |
+
- split: test
|
| 65 |
+
path: viewer/aaaaaa-T310_08d2d916.parquet
|
| 66 |
+
- config_name: aldp
|
| 67 |
+
data_files:
|
| 68 |
+
- split: test
|
| 69 |
+
path: viewer/ace-a-nme-T300_54968005.parquet
|
| 70 |
+
- config_name: ala4
|
| 71 |
+
data_files:
|
| 72 |
+
- split: test
|
| 73 |
+
path: viewer/ace-aaa-nme-T300_cda31701.parquet
|
| 74 |
+
- config_name: ka-ternary-T0.32
|
| 75 |
+
data_files:
|
| 76 |
+
- split: test
|
| 77 |
+
path: viewer/ka-ternary-N44-T0.32_d50e8a3f.parquet
|
| 78 |
+
- config_name: ka-ternary-T1.0
|
| 79 |
+
data_files:
|
| 80 |
+
- split: test
|
| 81 |
+
path: viewer/ka-ternary-N44-T1.0_c0f9b3b8.parquet
|
| 82 |
---
|
| 83 |
|
| 84 |
# samplingdb reference sets
|
|
|
|
| 89 |
convergence and independence before it was published here.
|
| 90 |
|
| 91 |
You do not need to download anything by hand. samplingdb fetches a set the first time it is used,
|
| 92 |
+
checks its sha256, and keeps it in its cache. To look at a set first, open the dataset viewer above
|
| 93 |
+
and pick the target in the subset menu.
|
| 94 |
|
| 95 |
## Quick start
|
| 96 |
|
|
|
|
| 132 |
x = np.load(path) # (n_samples, dim)
|
| 133 |
```
|
| 134 |
|
| 135 |
+
## Browsing, and loading with `datasets`
|
| 136 |
+
|
| 137 |
+
Each set also has a Parquet copy in `viewer/`, which is what the dataset viewer shows: one subset
|
| 138 |
+
per target, named as in `samplingdb.build`, with one row per sample. The column `x` is the sample
|
| 139 |
+
and `log_prob` is the samplingdb target's unnormalised log density at it, whose histogram the viewer
|
| 140 |
+
draws above the column. For the particle systems, the peptides and the glass, `log_prob` is minus
|
| 141 |
+
the energy in units of kT, so its histogram is the energy distribution, mirrored.
|
| 142 |
+
|
| 143 |
+
The same files load with the `datasets` library, under the split `test`:
|
| 144 |
+
|
| 145 |
+
```python
|
| 146 |
+
from datasets import load_dataset
|
| 147 |
+
|
| 148 |
+
lj55 = load_dataset('h2o64/samplingdb', 'lj55', split='test')
|
| 149 |
+
rows = lj55.with_format('numpy')[:]
|
| 150 |
+
x, log_prob = rows['x'], rows['log_prob'] # (100352, 165) and (100352,)
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
The `.npy` files are what samplingdb reads and what the tag pins; the Parquet copies hold the same
|
| 154 |
+
rows.
|
| 155 |
+
|
| 156 |
## Files
|
| 157 |
|
| 158 |
Each row of an array is one sample, flattened, in the coordinates the samplingdb target's
|