Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing labels #1

Closed
davkovacs opened this issue Jun 28, 2022 · 7 comments
Closed

Handle missing labels #1

davkovacs opened this issue Jun 28, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@davkovacs
Copy link
Collaborator

If there are no energy or forces keys defined it should fail by saying missing keys.

Eventually we should implement handling of missing keys as well.

@gabor1
Copy link
Collaborator

gabor1 commented Jun 28, 2022 via email

@ilyes319
Copy link
Contributor

ilyes319 commented Jul 1, 2022

One can now specify --loss_fn="forces_only" to train on data without energies. We still need to find a solution for mixed missing data, probably some masking scheme.

@ilyes319 ilyes319 added the enhancement New feature or request label Jul 1, 2022
@ilyes319
Copy link
Contributor

ilyes319 commented Oct 18, 2022

The models should now be able to handle missing labels on specific config type since #22 and #26. @davkovacs @bernstei How important is to support missing labels within the same config types. If it is important, how is it handled in GAP? It would be a per config weighting?

@bernstei
Copy link
Collaborator

What do you mean by missing "labels"? Missing quantities like energy/forces/virial ?

@ilyes319
Copy link
Contributor

Yes exactly.

@bernstei
Copy link
Collaborator

Per-config weights are supported, and that's how missing data is handled. In GAP I believe that the design matrix construction is not batched, so for every config rows are either added or not depending on what quantities are available.

Per-config weights are done in config_from_atoms() in https://github.com/ACEsuit/mace/blob/develop/mace/data/utils.py. For example line 133 reads a weight from Atoms.info["config_energy_weight"], or sets the weight to 0 if the energy is missing in line 139

@ilyes319
Copy link
Contributor

Perfect, so I think we need to add that to the readme, and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants