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

Force prediction normalization fix #234

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

laserkelvin
Copy link
Collaborator

This PR applies two changes:

  1. In ForceRegressionTask.predict, denorm from energy was erroneously applied to forces, which was the wrong behavior. This PR fixes this by replacing this with just a rescaling based on the energy standard deviation.
  2. ForceRegressionTask now overrides _make_normalizers, adding a check for the case when energy normalization is specified and not force. In this scenario, we automatically add the correct force normalizer based on copying the energy standard deviation, which should ensure the correct behavior.

This corrects the rescaling of the gradient of normalized energy, as the mean was erroneously
added to the force.
@laserkelvin laserkelvin added bug Something isn't working ux User experience, quality of life changes labels Jun 4, 2024
@laserkelvin laserkelvin requested a review from melo-gonzo June 4, 2024 15:29
@laserkelvin laserkelvin merged commit cdeeeb4 into IntelLabs:main Jun 4, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the force-predict-std-fx branch June 4, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux User experience, quality of life changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants