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

add option to apply mean to energy #818

Merged
merged 6 commits into from
Aug 22, 2024
Merged

add option to apply mean to energy #818

merged 6 commits into from
Aug 22, 2024

Conversation

rayg1234
Copy link
Collaborator

@rayg1234 rayg1234 commented Aug 21, 2024

Add option to predict mean energy in eqv2 energy head, does not change default behavior

@rayg1234 rayg1234 marked this pull request as ready for review August 21, 2024 18:00
@rayg1234 rayg1234 requested a review from wood-b August 21, 2024 18:00
@rayg1234 rayg1234 added enhancement New feature or request minor Minor version release patch Patch version release and removed minor Minor version release labels Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Files Patch % Lines
...airchem/core/models/equiformer_v2/equiformer_v2.py 57.14% 3 Missing ⚠️
Files Coverage Δ
...airchem/core/models/equiformer_v2/equiformer_v2.py 80.16% <57.14%> (-0.83%) ⬇️

wood-b
wood-b previously approved these changes Aug 21, 2024
Copy link
Collaborator

@wood-b wood-b left a comment

Choose a reason for hiding this comment

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

Looks good!

elif self.reduce == "mean":
return {"energy": energy / data.natoms}
else:
raise ValueError(f"agg_fn can only be sum or mean, user provided: {self.agg_fn}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

forgot to switch this agg_fn to reduce

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

opps

Copy link
Collaborator

@wood-b wood-b left a comment

Choose a reason for hiding this comment

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

Looks good!

@rayg1234 rayg1234 added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit 94e4a7f Aug 22, 2024
6 checks passed
@rayg1234 rayg1234 deleted the rgao_add_mean_pool_eqv2 branch August 22, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch Patch version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants