How to use a custom dataset for Heterogeneous Graph Learning ? #8175
Unanswered
Justsecret123
asked this question in
Q&A
Replies: 1 comment 9 replies
-
First of all, it looks like the data from disk is stored as a tuple (not sure why), so you may want to unpack it if you are only interested in the |
Beta Was this translation helpful? Give feedback.
9 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Following the tutorial on Heteregeneous Graph Learning, I created my own dataset using Networks graphs as follows :
After successfully loading the created dataset using

data=torch.load("../Scripts/pytorch_dataset/processed/dataset_pytorch_obj.pt")
, I cannot seem to understand how can I get the metadata from the loaded dataset, at this step :It just returns an error :
AttributeError: 'tuple' object has no attribute 'metadata'
.How can I get the metadata from the generated .pt file ?
Also, how can I define the x_dict since it also returns an error ? Should I modify the original Nx graphs to contain a feature named "x", and how ?
Edit : Adding the "x" feature to the nodes on my original nx graphs produced no effect on the outcome, the x_dict remains empty.
Beta Was this translation helpful? Give feedback.
All reactions