Skip to content

What's the difference between explain_message and edge_weight? #9506

Answered by kano5266
ZechenGao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!
The edge_mask in expain_message doesn't change the calculation of the node degree $\hat{d}_i = 1 + \sum_{j \in \mathcal{N}(i)} e_{j,i}$ in GCNConv. However, the edge weight does affect it.

Also, edge_mask can be used on all massage passing neural networks. While only a few MPNNs accept edge_weight as input.

Hope that helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ZechenGao
Comment options

Answer selected by ZechenGao
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