Link Classification with LinkNeighborLoader
and edge_attr
Misalignment
#10363
Unanswered
fafal-abnir
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm working on link classification using a Graph Neural Network with
LinkNeighborLoader
.In my model, I classify edges by computing:
The
LinkNeighborLoader
providesedge_attr
for the samplededge_index
,but not for the
edge_label_index
, which contains the edges I actually need to classify.for example:
Currently, I have to look up
edge_attr
from the full graph usingedge_label_index
to get the corresponding edge features.This is inefficient and breaks the purpose of minibatch training.
Is there a better solution to this?
Specifically:
Beta Was this translation helpful? Give feedback.
All reactions