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

fixed the coefficient before Lenard-jones terms #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yuanqing-wang
Copy link
Member

No description provided.

Copy link
Member

@jchodera jchodera 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 except the docstring!

Do you need to add a scaling factor that accounts for exceptions too?
Normally, 1-2 and 1-3 interactions are excluded, and 1-4 interactions are scaled.
AMBER sets this scaling at 0.5, but it could be flexible, or we could just have a network predict these exceptions specifically for every 1-4 pair for more flexibility.

@@ -225,7 +225,7 @@ def lj(
torch.lt(x, switch), torch.zeros_like(sigma_over_x), sigma_over_x,
)

return epsilon * (
return 4.0 * epsilon * (
Copy link
Member

Choose a reason for hiding this comment

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

Line 192 (the docstring containing the functional form) should be updated too!

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

Successfully merging this pull request may close these issues.

2 participants