Skip to content
Discussion options

You must be logged in to vote
  1. Yes, this is the suggested approach. In theory, one can reduce the number of node types involved on a per layer basis but it is very troublesome to deal with this.
  2. Summing of embeddings will happen for each layer, not only at the end (the HeteroGNN layer will take care of that).
  3. You can customize that in all heterogenous GNN variants included in PyG ("sum", "mean", "max", ...).
  4. For link prediction, we will only compute dot product for the edge type under consideration (similar to the final readout in your node classification example): x_src = x_dict["user"]; x_dst = x_dst["movie"]; x_src[edge_index[0]] * x_dst[edge_index[1]]. If you also want to return embeddings, you should be able to s…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Jeriousman
Comment options

@rusty1s
Comment options

@Jeriousman
Comment options

@rusty1s
Comment options

@Jeriousman
Comment options

Answer selected by Jeriousman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants