Edge attributes integration and NeighborSampler #2522
Unanswered
matteomedioli
asked this question in
Q&A
Replies: 1 comment
-
|
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.
-
Hi there!
I'm working on a multi-relations graph convolutional task in order to obtain node embeddings of Wordnet. I'm using your implementation of GraphSAGE Unsupervised with NeighborSampler. Since for my downstream task, relations between synset or lemma nodes have a strong influence I was wondering if there's a way to include
data.edge_attrs
(which stores the edge label that identifies the relation type) in SAGEConv (and GCNConv or CATConv too) in the algorithm.I have two main doubts (sorry in advance for any inaccuracy):
Convolutional Layers such as SAGEConv, GCNConv, and GATConv present
self.propagate()
andself.message()
in their forward() method.From what I understand, conv layers that manage
edge_attrs
(GENConv i.e) present in theself.propagate()
call the parameteredge_attr
(line 152 GENConv).Given these two assumptions, can I simply add the
edge_attrs
in theforward()
method for example in SAGEConv, and pass it to self.propagate(),self.message()
in order to integrate multi-relations message passing SAGEConv? (add here)Since I can only perform unsupervised training over Wordnet, I was wondering to train the model using negative sampling, as you present in
graph_sage_unsup.py
using thisNeighborSampler
implementation. There's a way to manage adge_attrs when sampling neg and pos batch?Many thanks in advance and thanks for sharing work!
Beta Was this translation helpful? Give feedback.
All reactions