-
Hi, thanks at first for your great work on pyg. I am trying to generate heterogeneous graphs for GCN training following the tutorial https://pytorch-geometric.readthedocs.io/en/latest/notes/heterogeneous.html. I have some questions regarding the heterogeneous graph: Second, I only have one edge type, is it ok to set all edge as the same string e.g. as "connect_to"? Thanks for your answer! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You would need to create a matrix out of your feature dictionary. If you have features = [{"node": 0, "name":"1","year":2000,"page":1}, ...] then you can do xs = [None] * len(features)
for feature in features:
xs[feature["node"]] = [int(feature["name"]), feature["year"], feature["page"]]
x = torch.tensor(xs)
Yes |
Beta Was this translation helpful? Give feedback.
You would need to create a matrix out of your feature dictionary. If you have
then you can do
Yes