You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux-cpp-lisp
changed the title
🌟 [FEATURE] Masking out some labels (constrained atoms)
🌟 [FEATURE] Masking out some labels (e.g. constrained atoms)
Feb 21, 2023
A related feature request would be to set custom weights per force component (e.g. as additional columns in an ASE .xyz dataset).
If I have structures where some atoms have very large forces I do not really care how accurate the trained model is on those large forces, only that they are "large", so it would be great to be able to give them a much smaller weight in the loss function.
This would be useful for example when adding short interatomic distances, or when breaking chemical bonds (i.e. far from equilibrium).
You could either make a custom loss that directly depends on the force magnitude, or you could take a force_weights (or whatever) key from the data and use that to reweight the loss value. (In the second case, you'd just need to include the force_weights in the dataset as a custom field with include_keys)
Hi,
Super cool, I would love to also use this feature in my work!
Is it possible to also set the masked atom's atomic energy contribution to zero? Ideally I would like to keep the masked atoms in the structure to keep the local atomic environment of the relevant atoms intact, however I do not want them contributing to the ultimage energy of the structure.
I tried by including the value "atomic_energy" in the field fields_to_mask, but that didn't work, presumably because the training data only includes one scalar value for the total_energy.
Is there anyway around this?
Thanks!
BETA implemention on
masks
: https://github.com/mir-group/nequip/tree/masks/examples/mask_labelsSee #240 for more discussion.
The text was updated successfully, but these errors were encountered: