Replies: 2 comments
-
Hi, I encountered the same error while trying to use GNNexplainer for Heterodata. I found this discussion might be useful. https://github.com/pyg-team/pytorch_geometric/discussions/7963 It looks like they have only updated the captum explainer for heterodata. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We have an open PR #10158 for this. Will try to merge it soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm working with a custom GNN model that takes a HeteroData object as input, with two relations. I want to use GNNExplainer to understand the model's predictions. I successfully defined the explainer as follows:
However, when I call it with a HeteroData object like this:
I get the following error:
ValueError: Heterogeneous graphs not yet supported in 'GNNExplainer'
Based on the PyTorch Geometric documentation, I expected Explainer to handle both homogeneous and heterogeneous graphs. I read on another discussion that support for HeteroData was foreseen for pyg 2,2.
Is this behavior expected for GNNExplainer, or am I missing something in my setup? If GNNExplainer doesn't support heterogeneous graphs, could you please recommend an alternative explainability method compatible with HeteroData?
Thanks in advance for your kind help!
Luigi
Beta Was this translation helpful? Give feedback.
All reactions