GNNExplainer can only export the node_feat_mask node01 #6190
Replies: 1 comment 3 replies
-
I also found a new question that in my installed torch-geometric version 2.2.0 the Explainer is different from the source code here https://pytorch-geometric.readthedocs.io/en/latest/_modules/torch_geometric/explain/explainer.html#Explainer. This is the source code here:
I cannot find some parameters such as "explanation_type".
And the details of my environment related to pyG is shown below:
I am wondering how can I run the example https://github.com/pyg-team/pytorch_geometric/blob/master/examples/gnn_explainer.py and finally use GNNExplainer in my own project? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello dear,

I am running the GNNExplainer of Cora dataset to get the importance of node features. I found that node_feat_mask can output non-zero items only when i=0, otherwise it will output vectors with all zeros. And I also did a node regression problem can found the similar results. I'm wondering the reason for this question, does it can only output the average importance of all node features? Or can each node output its corresponding feature importance?
My codes are shown as below:
And the features and edgeindex are the whole graph's.
Beta Was this translation helpful? Give feedback.
All reactions