How to update edge embeddings?
See original GitHub issue❓ Questions & Help
Hi, I have a question about how to update node embeddings and edge embeddings simultaneously. I want to update the edge embeddings for the next update of node embeddings and the edge embedding $e_{ij}^{l+1}$ is updated with the information of $x_i^l, x_j^l, e_{ij}^l$. I think it should be finished in message
method, but it should only return a Tensor. Are there some examples? Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
How to update edge features in a graph using a loss function?
Embed the subgraph (preferably using a GNN) and obtain it's embedding and use it with a classifier to predict say f1/f2. Propagate the...
Read more >How to use edge features in Graph Neural Networks (and ...
In this video I talk about edge weights, edge types and edge features and how to include them in Graph Neural Networks.
Read more >Graph Neural Networks for Updating Node/Edge ...
All models based on graph neural networks start with updating node/edge representations. ... feats (int) – Size for the node and edge embeddings...
Read more >Edge Embedding Not updated by Every GNN Layer #1122
The GNN Layers return node embedding and edge embedding . But the edge_embedding is ... Updating edge-embeddings after each GNN layer #1134.
Read more >Learning and Updating Node Embedding on Dynamic ...
Embedding (DyHINE), which can update embeddings when the network evolves. ... nodes (edge type, neighbor embedding) are used to update their embedding.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is correct, although I suggest to apply
edge_mlp
inmessage
:That’s not possible since you can only integrate one-dimensional edge features into a sparse matrix multiplication (that act as a weighting of neighbors). In this case, this needs to be implemented like the way above.