Sparse node features
#4661
-
Hello, I would like to know if there is a way to develop GNN models that accept sparse node features? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
May 17, 2022
Replies: 1 comment 3 replies
-
Some GNNs support sparse node feature matrices directly as input such as lin = Linear(num_features, 32)
x = lin(sparse_x) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Rajjaa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some GNNs support sparse node feature matrices directly as input such as
GCNConv
, but this is sadly not possible for all. For others, it might be a good idea to first project the sparse features into a low-dimensional (but dense) embedding space, and use that as input into the GNN: