-
Hello, I would like to implement an RGCN model for a link prediction task on heterogenous graph OGB-MAG dataset.
I have GPU resources, just use CPU on my local machine to start.
HeteroData(
HeteroData(
Sampled mini-batch:HeteroData( As you can see, a batch from train_loader only contains "(author, writes, paper)" and "(paper, cites, paper)" edges. I thought LinkNeighborLoader will samples multiple hops from both ends of a link. For example, it should sample "author, writes, paper" -> "paper, cites, paper" -> "paper, has, topic". I also want it to have edges "author, affiliated with, institution". But it doesn't sample those edges, is there anything wrong with my code? Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You may want to create bi-directional edge types for all the edges such that all node types are reachable. You can do this via the |
Beta Was this translation helpful? Give feedback.
You may want to create bi-directional edge types for all the edges such that all node types are reachable. You can do this via the
T.ToUndirected
transform.