GNNExplainer for Graph Level Prediction Task #9478
Answered
by
rusty1s
amoschoomy
asked this question in
Q&A
-
How would one use an explainer to explain my graph level prediction task? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Jul 8, 2024
Replies: 1 comment
-
|
You can call the explainer similar to how you call the model, i.e.: Two things:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amoschoomy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can call the explainer similar to how you call the model, i.e.:
Two things:
explainercan not operate ondataobjects. You need to change your modelforwardfunction to expectTensorattributes instead:def forward(self, data)->def forward(self, x, edge_index, ...)return_typeshould belog_probsin your case since the model does not seem to output probabilities (you have asigmoidapplied afterwards).