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

added uncertainty checks to jax md #328

Merged
merged 10 commits into from
Aug 26, 2024
Merged

added uncertainty checks to jax md #328

merged 10 commits into from
Aug 26, 2024

Conversation

M-R-Schaefer
Copy link
Contributor

Now that jaxmd supports tracking uncertainties, we can also use stopping criterions for the simulation loop.
Here I've implemented simple energy and force uncertainty stopping criterions.

closes #319

@M-R-Schaefer M-R-Schaefer added the enhancement New feature or request label Aug 26, 2024
@M-R-Schaefer M-R-Schaefer requested a review from PythonFZ August 26, 2024 07:52
Copy link
Contributor

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 🎉 one small comment. Also - any chance we can have tests for this? Probably not great without a pre-trained available ensemble model?

Comment on lines 309 to 311
log.info(
f"One or more dynamics checks failed at step: {step+1}"
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A failed check is not log.info but more log.warning or even log.critical or log.error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah fair. in IPS it is log.critical, I'll change it to that.

@M-R-Schaefer
Copy link
Contributor Author

pre-commit.ci autofix

@M-R-Schaefer
Copy link
Contributor Author

Great 🎉 one small comment. Also - any chance we can have tests for this? Probably not great without a pre-trained available ensemble model?

it would be possible to test, but it takes a long time in the CI to train some model for this

@M-R-Schaefer
Copy link
Contributor Author

pre-commit.ci autofix

@M-R-Schaefer
Copy link
Contributor Author

yeah ok I can cook up a reasonable test for this.

@M-R-Schaefer
Copy link
Contributor Author

pre-commit.ci autofix

@M-R-Schaefer M-R-Schaefer merged commit 67a0f23 into main Aug 26, 2024
2 checks passed
@M-R-Schaefer M-R-Schaefer deleted the dynamics_checks branch August 26, 2024 14:41
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

Successfully merging this pull request may close these issues.

Add MD termination criteria to Jaxmd
2 participants