You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the names states, I'd like to use host_update and connection_update for updating each of these types (even though now they are the same unit, I'd like to change them in the future, which is why I'm creating two).
The same happens with message_func_host and message_func_conn. I'd like to use two equal functions to have different weights for each node type.
I'd like to initialize the hidden states of the nodes in the following way: for the host nodes, use a 128-length tensor of 0's; for the connection nodes, concatenate the 26-length tensor of attributes data["connection"].x with a 102-length tensor of 0's.
I'd like to implement the message passing process T times for every graph. Would I need to create a loop in the forward function?? I don't know what would be the best way to implement something like this.
By reading the docs, I understand that step 2 could be achieved by using HeteroConv, but could the update function be implemented with it? And if so, how?
If more details are needed, please just ask!
Thank you very much for your time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I want to use a heterogeneous graph to perform node classification of a certain node type with PyG. Let me explain the task:
Heterogeneous graph
My HeteroData object is the following:
The task
Desired model
I've started to implement a model, but I don't know how to do a few things. The current model is:
My questions are:
By reading the docs, I understand that step 2 could be achieved by using HeteroConv, but could the update function be implemented with it? And if so, how?
If more details are needed, please just ask!
Thank you very much for your time.
Beta Was this translation helpful? Give feedback.
All reactions