Loading Atomrefs in Pretrained DimeNet mode #2656
Unanswered
Frank-LIU-520
asked this question in
Q&A
Replies: 1 comment 1 reply
-
In the QM9 dataset, there exists both properties |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the qm9_pretrained_dimenet.py of the example codes, there read # DimeNet uses the atomization energy for targets U0, U, H, and G. in line 12. But there is no way to find out how did DimeNet load and use these atomrefs in QM9 class. Can anybody tell me where I can trace how the atomrefs were loaded and used in the DimeNet training routine?
`import os.path as osp
import torch
from torch_geometric.datasets import QM9
from torch_geometric.data import DataLoader
from torch_geometric.nn import DimeNet
path = osp.join(osp.dirname(osp.realpath(file)), '..', 'data', 'QM9')
dataset = QM9(path)
# DimeNet uses the atomization energy for targets U0, U, H, and G.
idx = torch.tensor([0, 1, 2, 3, 4, 5, 6, 12, 13, 14, 15, 11])
dataset.data.y = dataset.data.y[:, idx]`
Beta Was this translation helpful? Give feedback.
All reactions