marcickler commited on
Commit
c5e9950
·
verified ·
1 Parent(s): 39a680a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +225 -3
README.md CHANGED
@@ -1,3 +1,225 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - chemistry
7
+ pretty_name: Minimal QM9 and QMugs dataset
8
+ size_categories:
9
+ - 1K<n<10K
10
+ ---
11
+ # `minimal_data_QM9_QMUGS` dataset
12
+
13
+ This dataset is used to enable simple experiments with our orbital-free density functional theory code from https://github.com/sciai-lab/structures25.
14
+
15
+ ## Dataset 1: QM9_perturbed_fock
16
+ This dataset contains a small subset of [QM9](https://www.nature.com/articles/sdata201422) molecules.
17
+
18
+ ```text
19
+ minimal_data_QM9_QMugs/
20
+ ├── QM9_perturbed_fock/
21
+ │ ├── dataset_statistics/
22
+ │ │ ├── dataset_statistics_labels_local_frames_global_symmetric_natrep_e_kin_plus_xc.zarr
23
+ │ │ └── dataset_statistics_labels_no_basis_transforms_e_kin_plus_xc.zarr
24
+ │ ├── labels/
25
+ │ │ ├── 0000825.zarr.zip
26
+ │ │ └── ...
27
+ │ ├── labels_local_frames_global_symmetric_natrep/
28
+ │ │ ├── 0000825.zarr.zip
29
+ │ │ └── ...
30
+ │ ├── split.pkl
31
+ │ └── split.yaml
32
+ └── QMUGS_perturbed_fock/
33
+ ├── dataset_statistics/
34
+ │ ├── dataset_statistics_labels_local_frames_global_symmetric_natrep_e_kin_plus_xc.zarr
35
+ │ └── dataset_statistics_labels_no_basis_transforms_e_kin_plus_xc.zarr
36
+ ├── labels/
37
+ │ ├── 0342979.zarr.zip
38
+ │ └── ...
39
+ ├── labels_local_frames_global_symmetric_natrep/
40
+ │ ├── 0342979.zarr.zip
41
+ │ └── ...
42
+ ├── split.pkl
43
+ └── split.yaml
44
+ ```
45
+
46
+ ### Description folder:
47
+ - `dataset_statistics`: The dataset statistics contain information about the statistics of the energies, coefficients and gradients of the data. These are used for normalization techniques inside the model, and intial guesses of the density. They are loaded once at model or `SADGuesser` initialization. For each basis transform, the statistics will vary which is why each basis transformations gets its own directory. The `dataset_statistics_labels_local_frames_global_symmetric_natrep_e_kin_plus_xc.zarr` statistics used for the model, while the `dataset_statistics_labels_no_basis_transforms_e_kin_plus_xc.zarr` statistics are used for the `SADGuesser`.
48
+ - `labels`: The untransformed label zarr files. These contain all data necessary for model training as well as OFDFT evaluations.
49
+ - `labels_local_frames_global_symmetric_natrep`: The transformed label zarr files. The transformation is applied to all values in the `spatial` group according to their representation.
50
+ - `split.pkl`: The split file, defining which label files belong to `train`, `val` and `test` split.
51
+ - `split.yaml`: The same split file in `yaml` format, not used by the code but for humans to parse quickly.
52
+
53
+ #### Internal structure .zarr file (e.g., `0000825.zarr.zip`)
54
+ `geometry` and `of_labels` are used during training and density optimization, while `ks_labels` is there to easily compare against Kohn-Sham energies but is not used in the usual workflows.
55
+ ```bash
56
+ >>> print(zarr_store.tree())
57
+ /
58
+ ├── geometry
59
+ │ ├── atom_pos (13, 3) float64
60
+ │ ├── atomic_numbers (13,) uint8
61
+ │ └── mol_id () <U11
62
+ ├── ks_labels
63
+ │ ├── basis () <U12
64
+ │ └── energies
65
+ │ ├── e_electron (35,) float64
66
+ │ ├── e_ext (35,) float64
67
+ │ ├── e_hartree (35,) float64
68
+ │ ├── e_kin (35,) float64
69
+ │ ├── e_nuc_nuc (35,) float64
70
+ │ ├── e_tot (35,) float64
71
+ │ ├── e_xc (35,) float64
72
+ │ └── has_energy_label (35,) bool
73
+ └── of_labels
74
+ ├── basis () <U96
75
+ ├── energies
76
+ │ ├── e_electron (35,) float64
77
+ │ ├── e_ext (35,) float64
78
+ │ ├── e_ext_mod (35,) float64
79
+ │ ├── e_hartree (35,) float64
80
+ │ ├── e_kin (35,) float64
81
+ │ ├── e_kin_minus_apbe (35,) float64
82
+ │ ├── e_kin_plus_xc (35,) float64
83
+ │ ├── e_kinapbe (35,) float64
84
+ │ ├── e_tot (35,) float64
85
+ │ └── e_xc (35,) float64
86
+ ├── n_scf_steps () int64
87
+ └── spatial
88
+ ├── basis_integrals (35, 904) float64
89
+ ├── coeffs (35, 904) float64
90
+ ├── dual_basis_integrals (35, 904) float64
91
+ ├── grad_ext (35, 904) float64
92
+ ├── grad_hartree (35, 904) float64
93
+ ├── grad_kin (35, 904) float64
94
+ ├── grad_kin_minus_apbe (35, 904) float64
95
+ ├── grad_kin_plus_xc (35, 904) float64
96
+ ├── grad_kinapbe (35, 904) float64
97
+ ├── grad_tot (35, 904) float64
98
+ └── grad_xc (35, 904) float64
99
+
100
+ ```
101
+ #### Internal structure `dataset_statistics_labels_local_frames_global_symmetric_natrep_e_kin_plus_xc.zarr`
102
+ The dataset statistcs are split into multiple `weigher_keys` like `constant` or `ground_state_only`. This is because for some applications we want to filter, mainly which SCF iterations of our data we want to include. For example, for a good ground state prediction, only the ground state coefficients matter.
103
+
104
+ ```bash
105
+ >>> print(dataset.tree())
106
+ /
107
+ ├── constant
108
+ │ └── initial_guess_delta
109
+ │ ├── abs_max (477,) float64
110
+ │ ├── mean (477,) float64
111
+ │ └── std (477,) float64
112
+ ├── ground_state_only
113
+ │ ├── atom_ref_atom_type_bias (5,) float64
114
+ │ ├── atom_ref_energy_only_atom_type_bias (5,) float64
115
+ │ ├── atom_ref_energy_only_global_bias () float64
116
+ │ ├── atom_ref_global_bias () float64
117
+ │ ├── coeffs
118
+ │ │ ├── abs_max (477,) float64
119
+ │ │ ├── mean (477,) float64
120
+ │ │ └── std (477,) float64
121
+ │ ├── energy_minus_atom_ref
122
+ │ │ ├── abs_max () float64
123
+ │ │ ├── mean () float64
124
+ │ │ └── std () float64
125
+ │ ├── energy_minus_scalar_atom_ref
126
+ │ │ ├── abs_max () float64
127
+ │ │ ├── mean () float64
128
+ │ │ └── std () float64
129
+ │ ├── gradient_label
130
+ │ │ ├── abs_max (477,) float64
131
+ │ │ ├── mean (477,) float64
132
+ │ │ └── std (477,) float64
133
+ │ ├── gradient_max_after_atom_ref (477,) float64
134
+ │ ├── gradient_max_after_scalar_atom_ref (477,) float64
135
+ │ ├── scalar_atom_ref_atom_type_bias (5,) float64
136
+ │ └── scalar_atom_ref_global_bias () float64
137
+ ├── has_energy_label
138
+ │ ├── atom_ref_atom_type_bias (5,) float64
139
+ │ ├── atom_ref_energy_only_atom_type_bias (5,) float64
140
+ │ ├── atom_ref_energy_only_global_bias () float64
141
+ │ ├── atom_ref_global_bias () float64
142
+ │ ├── coeffs
143
+ │ │ ├── abs_max (477,) float64
144
+ │ │ ├── mean (477,) float64
145
+ │ │ └── std (477,) float64
146
+ │ ├── energy_minus_atom_ref
147
+ │ │ ├── abs_max () float64
148
+ │ │ ├── mean () float64
149
+ │ │ └── std () float64
150
+ │ ├── energy_minus_scalar_atom_ref
151
+ │ │ ├── abs_max () float64
152
+ │ │ ├── mean () float64
153
+ │ │ └── std () float64
154
+ │ ├── gradient_label
155
+ │ │ ├── abs_max (477,) float64
156
+ │ │ ├── mean (477,) float64
157
+ │ │ └── std (477,) float64
158
+ │ ├── gradient_max_after_atom_ref (477,) float64
159
+ │ ├── gradient_max_after_scalar_atom_ref (477,) float64
160
+ │ ├── scalar_atom_ref_atom_type_bias (5,) float64
161
+ │ └── scalar_atom_ref_global_bias () float64
162
+ ├── initial_guess_only
163
+ │ └── initial_guess_delta
164
+ │ ├── abs_max (477,) float64
165
+ │ ├── mean (477,) float64
166
+ │ └── std (477,) float64
167
+ ├── min_scf_iteration_3
168
+ │ ├── atom_ref_atom_type_bias (5,) float64
169
+ │ ├── atom_ref_energy_only_atom_type_bias (5,) float64
170
+ │ ├── atom_ref_energy_only_global_bias () float64
171
+ │ ├── atom_ref_global_bias () float64
172
+ │ ├── coeffs
173
+ │ │ ├── abs_max (477,) float64
174
+ │ │ ├── mean (477,) float64
175
+ │ │ └── std (477,) float64
176
+ │ ├── energy_minus_atom_ref
177
+ │ │ ├── abs_max () float64
178
+ │ │ ├── mean () float64
179
+ │ │ └── std () float64
180
+ │ ├── energy_minus_scalar_atom_ref
181
+ │ │ ├── abs_max () float64
182
+ │ │ ├── mean () float64
183
+ │ │ └── std () float64
184
+ │ ├── gradient_label
185
+ │ │ ├── abs_max (477,) float64
186
+ │ │ ├── mean (477,) float64
187
+ │ │ └── std (477,) float64
188
+ │ ├── gradient_max_after_atom_ref (477,) float64
189
+ │ ├── gradient_max_after_scalar_atom_ref (477,) float64
190
+ │ ├── initial_guess_delta
191
+ │ │ ├── abs_max (477,) float64
192
+ │ │ ├── mean (477,) float64
193
+ │ │ └── std (477,) float64
194
+ │ ├── scalar_atom_ref_atom_type_bias (5,) float64
195
+ │ └── scalar_atom_ref_global_bias () float64
196
+ └── min_scf_iteration_5
197
+ ├── atom_ref_atom_type_bias (5,) float64
198
+ ├── atom_ref_energy_only_atom_type_bias (5,) float64
199
+ ├── atom_ref_energy_only_global_bias () float64
200
+ ├── atom_ref_global_bias () float64
201
+ ├── coeffs
202
+ │ ├── abs_max (477,) float64
203
+ │ ├── mean (477,) float64
204
+ │ └── std (477,) float64
205
+ ├── energy_minus_atom_ref
206
+ │ ├── abs_max () float64
207
+ │ ├── mean () float64
208
+ │ └── std () float64
209
+ ├── energy_minus_scalar_atom_ref
210
+ │ ├── abs_max () float64
211
+ │ ├── mean () float64
212
+ │ └── std () float64
213
+ ├── gradient_label
214
+ │ ├── abs_max (477,) float64
215
+ │ ├── mean (477,) float64
216
+ │ └── std (477,) float64
217
+ ├── gradient_max_after_atom_ref (477,) float64
218
+ ├── gradient_max_after_scalar_atom_ref (477,) float64
219
+ ├── scalar_atom_ref_atom_type_bias (5,) float64
220
+ └── scalar_atom_ref_global_bias () float64
221
+
222
+ ```
223
+
224
+ ## Dataset 2: QMUGS_perturbed_fock
225
+ This dataset contains a small subset of [QMugs](https://www.nature.com/articles/s41597-022-01390-7) molecules, which we use to test generalization to larger molecules. The structure of the data is exactly the same as for QM9.