Advice on how to get a sparse output from GNN? #2451
-
I would like to ask for your advice on training GNN for a link prediction task. The problem that I have is that I tried to train the attention network. I have tried to use the dropout layer at training to make my adjacent matrix to be sparse. However, it seems that when I deactivate the dropout layer, my network performs very poorly. Could you give any tips on how to handle this kind of problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you clarify? I guess you have a
|
Beta Was this translation helpful? Give feedback.
Can you clarify? I guess you have a
GAT
encoder and utilize aInnerProduct
decoder as in https://github.com/rusty1s/pytorch_geometric/blob/master/examples/autoencoder.py? This will return a dense adjacency matrix by design, which you can sparsify via thresholding, e.g.