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

Derivatives of output global graph property with respect to input node features? #413

Open
alfonsogijon opened this issue Jan 30, 2023 · 2 comments

Comments

@alfonsogijon
Copy link

Hi, the example about the QM9 database is very illustrative for me to perform regression of molecular properties on my own dataset.

¿It would be possible to implement the computation of the derivatives of an output global graph property (as the energy) with respect the input node features (atomic position coordinates)? That would be very interesting because it would allow to consistently compute the forces acting on each atom (as derivatives of the total energy with respect its position) and perform molecular dynamics simulations.

I don't know if it's possible to implement the analytical derivative of a global property with respect an input feature, in our case, the x-coordinate of atom 1, for example.

Thanks,

Alfonso

@danielegrattarola
Copy link
Owner

Hi

The GNN should be fully differentiable so it should be possible to compute the gradients wrt an input feature.

Have a look here for how to achieve this.

@alfonsogijon
Copy link
Author

Thanks! Right now I have no skills enough for the implementation but I am working on that.

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

No branches or pull requests

2 participants