-
Dear pyg-team Task I learnt that GNNExplainer is capable of this task, but I wish to obtain the important points during the training so that I can use them to train another model simultaneously. Possible Solution How can I obtain the importance of all 1024 points in the original points cloud? Is there a way to reverse the fps and assign those 32 points importance to their neighbours? Another question is can I just extract the importance by returning the softmax output gate here?
Any other possible solutions? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If you want to learn the importance of nodes jointly with the prediction task, you could apply a soft masking approach at the beginning of your model: self.mask = torch.nn.Parameter(torch.randn(num_nodes, 1))
def forward(self, x, edge_index, ...):
x = self.mask.sigmoid() * x
... Let me know if this is helpful to you :)
|
Beta Was this translation helpful? Give feedback.
If you want to learn the importance of nodes jointly with the prediction task, you could apply a soft masking approach at the beginning of your model:
Let me know if this is helpful to you :)
...