Skip to content
Discussion options

You must be logged in to vote

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:

lin = Linear(num_features, 32)
x = lin(sparse_x)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Rajjaa
Comment options

@rusty1s
Comment options

@Rajjaa
Comment options

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