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:
explainer
can not operate ondata
objects. You need to change your modelforward
function to expectTensor
attributes instead:def forward(self, data)
->def forward(self, x, edge_index, ...)
return_type
should belog_probs
in your case since the model does not seem to output probabilities (you have asigmoid
applied afterwards).