Replies: 1 comment 1 reply
-
I think the idea of broadcasting is pretty common. Alternatively, you can add a virtual node to the graph that is connected to all other nodes, and fill it with global graph information, but this might require a heterogeneous GNN to treat this type of node differently. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello, I am working on a node prediction use case. I am already using the node attributes
x
and the edge attributesedge_attr
in my models. However, I would also want to try to incorporate graph info (e.g. different types of graphs could need adjustment in terms of node prediction). I could simply broadcast the graph feature(s) into each node, but I'm trying to find something more elegant. First, are there any models/examples in PyG that already do that combination of global and local features? If not, how could I change my GNN architecture to adapt it to this problem? Thanks!Beta Was this translation helpful? Give feedback.
All reactions