dtsdts commited on
Commit
9cbf093
·
verified ·
1 Parent(s): 4ee3967

Add deduplicated leakage-safe FHI-aims splits

Browse files

Adds deterministic train/validation/test CSV partitions, duplicate-removal audit metadata, and dataset-card configuration. The original release remains available as legacy_original.

README.md CHANGED
@@ -12,6 +12,18 @@ tags:
12
  pretty_name: "Multi-fidelity DFT delta corrections for crystal structures"
13
  size_categories:
14
  - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
15
  ---
16
 
17
  # Multi-fidelity DFT delta corrections for crystal structures
@@ -30,6 +42,13 @@ The dataset was constructed to train and evaluate machine-learning models that
30
  predict the correction needed to "upgrade" a cheap DFT calculation to a more
31
  expensive one, without running the expensive calculation.
32
 
 
 
 
 
 
 
 
33
  ### Key quantities
34
 
35
  | Symbol | Column | Description |
@@ -46,6 +65,10 @@ expensive one, without running the expensive calculation.
46
  |------|--------|------|-------------|
47
  | `data.parquet` | Parquet (snappy) | ~92 MB | Tabular delta corrections + DFT settings + features |
48
  | `graph_data.pt` | PyTorch `torch.save` | ~352 MB | Pre-processed graph dataset for GNN training |
 
 
 
 
49
 
50
  ---
51
 
@@ -62,6 +85,22 @@ print(df["basis_size"].value_counts())
62
  print(df["delta_total_energy_per_atom"].describe())
63
  ```
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  ### Graph data (PyTorch / PyG)
66
 
67
  ```python
@@ -136,12 +175,26 @@ Columns follow the pattern `{stat}_{feature}` where `stat` ∈ {`max`, `min`, `m
136
 
137
  ## Dataset Statistics
138
 
139
- - **Total rows:** 59,235
 
 
 
 
 
140
  - **Unique structures:** ~14,500
141
  - **Basis sizes:** `minimal`, `standard`, `tier1`, `tier2`
142
  - **k-point densities:** 2, 4, 8
143
  - **Elements covered:** H through Bi (excluding lanthanides/actinides; a small number of heavy-element structures are filtered)
144
- - **Train / val / test split:** 80 / 10 / 10 by unique crystal structure
 
 
 
 
 
 
 
 
 
145
 
146
  ---
147
 
 
12
  pretty_name: "Multi-fidelity DFT delta corrections for crystal structures"
13
  size_categories:
14
  - 10K<n<100K
15
+ configs:
16
+ - config_name: legacy_deduplicated_leakage_safe_v1
17
+ default: true
18
+ data_files:
19
+ - split: train
20
+ path: repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/train.csv.gz
21
+ - split: validation
22
+ path: repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/validation.csv.gz
23
+ - split: test
24
+ path: repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/test.csv.gz
25
+ - config_name: legacy_original
26
+ data_files: data.parquet
27
  ---
28
 
29
  # Multi-fidelity DFT delta corrections for crystal structures
 
42
  predict the correction needed to "upgrade" a cheap DFT calculation to a more
43
  expensive one, without running the expensive calculation.
44
 
45
+ The default configuration is now `legacy_deduplicated_leakage_safe_v1`. It
46
+ removes redundant exact copies, excludes conflicting duplicate groups, and
47
+ uses connected components of ICSD identity and exact starting-structure hash
48
+ to prevent leakage between train, validation, and test. The original 59,235-row
49
+ release remains available as the `legacy_original` configuration for
50
+ reproducibility.
51
+
52
  ### Key quantities
53
 
54
  | Symbol | Column | Description |
 
65
  |------|--------|------|-------------|
66
  | `data.parquet` | Parquet (snappy) | ~92 MB | Tabular delta corrections + DFT settings + features |
67
  | `graph_data.pt` | PyTorch `torch.save` | ~352 MB | Pre-processed graph dataset for GNN training |
68
+ | `repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/train.csv.gz` | Compressed CSV | ~25.4 MiB | Deduplicated training partition (39,951 rows) |
69
+ | `repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/validation.csv.gz` | Compressed CSV | ~3.3 MiB | Deduplicated validation partition (4,940 rows) |
70
+ | `repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/test.csv.gz` | Compressed CSV | ~3.4 MiB | Deduplicated test partition (5,217 rows) |
71
+ | `repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/audit.json` | JSON | ~3 KB | Deduplication policy, leakage checks, counts, and source hashes |
72
 
73
  ---
74
 
 
85
  print(df["delta_total_energy_per_atom"].describe())
86
  ```
87
 
88
+ ### Recommended leakage-safe configuration
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+
93
+ dataset = load_dataset(
94
+ "dtsdts/multifidelity-dft-deltas",
95
+ "legacy_deduplicated_leakage_safe_v1",
96
+ )
97
+ print(dataset)
98
+ # train: 39,951; validation: 4,940; test: 5,217
99
+ ```
100
+
101
+ The hosted partitions retain the `split` column used to create them. The
102
+ historical partition label is preserved separately as `source_split`.
103
+
104
  ### Graph data (PyTorch / PyG)
105
 
106
  ```python
 
175
 
176
  ## Dataset Statistics
177
 
178
+ - **Original release:** 59,235 rows
179
+ - **Recommended deduplicated release:** 50,108 rows
180
+ - **Recommended split:** 39,951 train / 4,940 validation / 5,217 test
181
+ - **Exact duplicate copies removed:** 6,200
182
+ - **Conflicting duplicate rows excluded:** 971 rows across 360 groups
183
+ - **Cross-partition leakage:** 0 shared ICSD numbers and 0 shared exact structure hashes
184
  - **Unique structures:** ~14,500
185
  - **Basis sizes:** `minimal`, `standard`, `tier1`, `tier2`
186
  - **k-point densities:** 2, 4, 8
187
  - **Elements covered:** H through Bi (excluding lanthanides/actinides; a small number of heavy-element structures are filtered)
188
+ - **Split method:** deterministic connected components of ICSD number and exact starting-structure hash
189
+
190
+ ### Deduplication policy
191
+
192
+ An exact duplicate key combines the exact starting-structure hash with the
193
+ normalized physical FHI-aims setting. For identical copies, the row with the
194
+ lexicographically smallest padded source-row identifier is retained. If rows
195
+ with the same key disagree in their target values, the entire conflicting
196
+ group is excluded rather than selecting or averaging a label. See the included
197
+ `audit.json` for the complete reconciliation and SHA-256 hashes.
198
 
199
  ---
200
 
repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/audit.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "deduplication": {
3
+ "conflicting_duplicate_policy": "exclude the entire group; do not choose or average disagreeing targets",
4
+ "conflicting_groups_removed": 360,
5
+ "conflicting_rows_removed": 971,
6
+ "exact_duplicate_copies_removed": 6200,
7
+ "exact_duplicate_policy": "keep the lexicographically smallest padded source_row_id",
8
+ "input_groups_by_status": {
9
+ "conflicting": 360,
10
+ "exact": 6104,
11
+ "unique": 44004
12
+ },
13
+ "input_rows_by_status": {
14
+ "conflicting": 971,
15
+ "exact": 12304,
16
+ "unique": 44004
17
+ },
18
+ "key": "duplicate_group_id = structure_hash + normalized physical settings",
19
+ "output_duplicate_group_ids_are_unique": true
20
+ },
21
+ "output": {
22
+ "columns": 178,
23
+ "csv_bytes": 130334090,
24
+ "csv_path": "gitlab_upload/legacy_fhi_aims_model_ready_deduplicated_leakage_safe_split_v1_2026-09-07.csv",
25
+ "csv_sha256": "0f782883d4c46f6e955e5840b17575b8db62f11b0c2c81c880ee6c8a8c480d53",
26
+ "gzip_bytes": 32837745,
27
+ "gzip_path": "gitlab_upload/legacy_fhi_aims_model_ready_deduplicated_leakage_safe_split_v1_2026-09-07.csv.gz",
28
+ "gzip_sha256": "6e2496d3b022c111b452ee1ddc923f1d23c57735c59f4f2b61dca36cc071d2ac",
29
+ "rows": 50108
30
+ },
31
+ "reconciliation": {
32
+ "actual_output_rows": 50108,
33
+ "expected_output_rows": 50108,
34
+ "input_minus_removed_equals_output": true,
35
+ "split_rows_sum_to_output": true
36
+ },
37
+ "source": {
38
+ "columns": 177,
39
+ "existing_structure_hashes_in_multiple_splits": 184,
40
+ "path": "gitlab_upload/legacy_fhi_aims_model_ready_2026-09-07.csv",
41
+ "rows": 57279,
42
+ "sha256": "bb8019e2de15b461ac0b017b114fcc9b01480ab8f98b0d248f8cff450147440c"
43
+ },
44
+ "split": {
45
+ "ICSD_counts": {
46
+ "test": 366,
47
+ "train": 2775,
48
+ "val": 338
49
+ },
50
+ "ICSD_numbers_in_multiple_splits": 0,
51
+ "algorithm": "union ICSD and structure-hash identities, then sha256(salt + ':' + canonical component ID); first 64 bits mapped to [0,1)",
52
+ "column": "split",
53
+ "component_counts": {
54
+ "test": 356,
55
+ "train": 2690,
56
+ "val": 333
57
+ },
58
+ "group_key": "connected component of ICSD_number and structure_hash",
59
+ "original_column_preserved_as": "source_split",
60
+ "row_counts": {
61
+ "test": 5217,
62
+ "train": 39951,
63
+ "val": 4940
64
+ },
65
+ "salt": "legacy_fhi_aims_icsd_structure_component_split_v1",
66
+ "structure_hash_counts": {
67
+ "test": 3740,
68
+ "train": 28607,
69
+ "val": 3552
70
+ },
71
+ "structure_hashes_in_multiple_splits": 0,
72
+ "thresholds": {
73
+ "test": "[0.90,1.00)",
74
+ "train": "[0.00,0.80)",
75
+ "val": "[0.80,0.90)"
76
+ }
77
+ }
78
+ }
repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/test.csv.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4b746c741b994dd7070f35be58f255a6c248f1a382c7ab5b1d55d40363b5eb1
3
+ size 3577311
repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/train.csv.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e003e9da7a92fe8165846c249f34fb46a87a73775659b1608ece76a70f5af006
3
+ size 26593876
repaired/legacy_fhi_aims_deduplicated_leakage_safe_v1/validation.csv.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97ebd44921b0f9d6f91b953b75d1a9542b92c3d860caa0468fc61cb69f60e243
3
+ size 3472741