For HeteroData, can we assign edge_type to only one set of the edges? #7080
Unanswered
ZihanChen1995
asked this question in
Q&A
Replies: 1 comment
-
I think leveraging |
Beta Was this translation helpful? Give feedback.
0 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.
-
Suppose we have a
HeteroData
like following. Our target is using GNN to predict the links betweenA
andB
(i.e.,(A, a_to_b, B)
). I have already built a working model usingto_hetero()
:This model works well. However, since the edge
(A, a_to_b, B)
has its uniqueedge_type
(3 relations as 0,1,2), I am wondering:Can we utilize this
edge_type
information?I tried to follow the example here by assigning
RGCNConv
to the(A, a_to_b, B)
.However, it keeps showing the error
Would you mind giving me some suggestions about how I can utilize the
edge_type
information of'a_to_b'
? I guess a naive way is splitting'a_to_b'
into'a_to_b_rel1'
,'a_to_b_rel2'
,'a_to_b_rel3'
. But do you think is there any better solution?Thank you so much in advance!
Here is the HereoData:
Beta Was this translation helpful? Give feedback.
All reactions