-
Hi, I am trying to find ways to visualize(explain) the output of any pyg network. For example, I am taking a simple toy network using Graph conv:
The network looks like this:
calling network:
output:
Is there a way to visualize this output? I found two tutorials The tutorial uses molecules as the dataset, I am looking for a very simple example of how to visualize the output of the above network using captum? What I have tried: I tried to explain the embeddings using example given in repo
running it like this:
I also tried with GNNexplainer
Issues:
Here is full working code: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@rusty1s Thanks for the response. I thought about one solution
it will convert the output to the scaler and then set |
Beta Was this translation helpful? Give feedback.
-
That was helpful, I have decided to go with torch.sum method however I am facing one issue, How to handle multiple output from graph model in For example if my network looks like this:
Since I found one solution, I tried but giving error. Please guide on this. |
Beta Was this translation helpful? Give feedback.
That was helpful, I have decided to go with torch.sum method however I am facing one issue, How to handle multiple output from graph model in
to_captum
function?For example if my network looks like this:
Since
to_captum
takes inputs and return single output, How to use this model withto_captum
?I found one solution, I tried but giving error. Please guide on this.