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

Override force standard deviation with energy #239

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

laserkelvin
Copy link
Collaborator

This PR forcibly overrides the force normalization standard deviation value with an energy one, if both normalizers are present in the ForceRegressionTask.

In #234, the new branch condition (if an energy normalizer is created but not a force one) was intended to be a simple QoL improvement by automatically creating a force normalizer based on the corresponding energy standard deviation value. The catch, however, was that this condition I think will only trigger for previously created tasks, or if task_keys are not passed, and was not triggering in LiPS training runs (i.e. "force" normalizer was present, but was a standard normal distribution).

This PR makes it so that we compare values of the force and energy std, and if they are not equal, the energy std value overwrites the force one to ensure consistency. While there could be some instance where they might not be equal, the intended behavior now for ForceRegressionTask is that force is a derivative of energy, and should follow suit.

Initially thought this would give modeling flexibility, but caused more
issues when the force std is silently not the same

Signed-off-by: Kin Long Kelvin Lee <[email protected]>
@laserkelvin laserkelvin added the bug Something isn't working label Jun 10, 2024
@laserkelvin laserkelvin requested a review from melo-gonzo June 10, 2024 20:21
@laserkelvin laserkelvin merged commit 0c8b77d into IntelLabs:main Jun 10, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the normalizer-override-force branch June 10, 2024 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants