Skip to content

❓ Training energies with variable number of atoms across frames #137

Answered by peppe69
peppe69 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
finally we succeeded in training a nequip model with our data, and with energies and forces.
But maybe we found a bug in the nequip code, so please check carefully what follows.
In detail, the per-atom energy statistics for the whole dataset are: mean=-3460.8266742392325; std=0.16236037667479927. The same evaluated by the nequip are: dataset_per_atom_total_energy_mean=-22883.892153712808, dataset_per_atom_total_energy_std=62120.49343479028
So we debugged the code, and found this: in nequip/data/dataset.py, line 540, the per-atom energies are evaluated as arr / N.
Since the shape of the tensors is different (arr: [n_samples, 1]; N: [n_samples]), element-wise division is NOT performed: …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@mariummou
Comment options

@Linux-cpp-lisp
Comment options

Comment options

You must be logged in to vote
1 reply
@peppe69
Comment options

Comment options

You must be logged in to vote
2 replies
@Linux-cpp-lisp
Comment options

@nw13slx
Comment options

Answer selected by Linux-cpp-lisp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
5 participants
Converted from issue

This discussion was converted from issue #136 on January 19, 2022 16:38.