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
Predicting other values from the QM9 dataset #3
Comments
Hi!
Yes, we actually are predicting those atomization energies instead of the original U_0, U, H, G values as mentioned in the Appendix Section 7.1 of our work, which is also the common approach used in related works.
Since we are not predicting the original values for U_0, U, H, G targets (target indices from 7 to 10 in QM9), we directly add 5 for those target indices to load the related atomization energy targets (target indices from 12 to 15 in QM9). Lines 78 to 94 in 265db78
An alternative way is to call the atomref function to subtract the atomic reference energies from total energies when loading the dataset: Lines 138 to 143 in 265db78
|
Thank you so much!! |
Is there a way to predict multiple values at once? For example, if we wanted our targets to be u_298, h_298, and cv, is there a way to modify MXMNet to do that? |
Yes, you can just change the single target input in QM9 to multiple targets, and let the model to output multiple values for each molecule. For example, to predict u_298, h_298, and cv, the corresponding indices are 13, 14, and 11. The Lines 65 to 68 in fa1dbc5
Then the model should output a tensor of size [N, 3] for N molecules with 3 targets. The following line should be changed to Line 87 in fa1dbc5
By doing these, the Line 117 in fa1dbc5
|
I tried the modifications that you suggested. However, I don't think it recognizes the change in the tensor's size. I get the following error:
How do you suggest we deal with this? EDIT: I had initially posted a testing version that I had made for myself. The line numbers would've been harder to trace because of that, so I updated the error message with what I got from running main.py with the modification. |
You can try |
Hello!
The QM9 dataset also contains information regarding the atomization energies of molecules. Can we predict those by simply adding to the targets list in main.py?
Also, can you please explain why you add 5 to the target values in [7,8,9,10]?
The text was updated successfully, but these errors were encountered: