-
Notifications
You must be signed in to change notification settings - Fork 79
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
Distance scaling in ExpNorm RBFs #28
Comments
This would be a nice addition! Is there a way to compute a good value for alpha from the cutoff range? Do you have an idea how to cleanly implement this additional argument for ExpNorm? It might make sense then to create the RBF module inside |
I think that is actually a problem. I'm not sure of an intuitive way to choose alpha without visually checking the plots of the basis functions over distances. To me, it makes sense to leave the default value as 1 for consistency with respect to previous works like PhysNet, but I would have to think a bit about how to choose alpha systematically based on the choice of the cutoffs. |
For now we could also add a special We have this argument: |
Nice
…On Sun, Jul 18, 2021, 21:02 nec4 ***@***.***> wrote:
Hello - sorry for the delay on this. Turns out there is a very simple way
to tune $\alpha$: It is actually just
$\alpha=5/(cutoff_upper-cutoff_lower)$. The 5 is chosen to reproduce the
default behavior from PhysNet. Here are a few examples where only the upper
cutoff distance is varied:
[image: Screen Shot 2021-07-18 at 9 00 57 PM]
<https://user-images.githubusercontent.com/42926839/126079207-b6b7c3e3-bd80-4147-b91e-665f8988bca1.png>
I will make a branch and then a PR and if you guys like it we can discuss
further.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3KUOUWMFRA7PMFLRGJOSDTYMQK3ANCNFSM47ZLL2BQ>
.
|
Looks good, thanks! |
I have noticed that the ExpNorm basis functions might benefit from a new parameter that rescales the distances inside the inner expoential. Consider the default setup where the distances are not rescaled and an upper cutoff of 35 angstroms is used (the first figure). While there is a good density of basis functions at small distances, there are just a few at longer distances. By contrast, if the distances are rescaled by some factor, say alpha=0.2. the second figure results in a more even distribution of basis functions (without changing anything else). I think this might be at odds with how the distance expansions are implemented in the
TorchMD_GN
class, because it always expects a fixed number of parameters common to all distance expansion types. If this is desirable, I would be happy to make a PR and implement tests.The text was updated successfully, but these errors were encountered: