Comments (4)
For custom models, the important step is that it needs to be re-trained. In this repo, after finished training, the resulting model is saved to checkpoint, and the explainer_main have to load the model and the ckpt. With custom model, you will need to change the loading of model into your model. So rather than "import models" in explainer_main, you do "import my_own_models".
Also see an example in pygeometric (Thanks to Matthias for helping with the incorporation):
Model: https://github.com/rusty1s/pytorch_geometric/blob/master/torch_geometric/nn/models/gnn_explainer.py
Usage: https://github.com/rusty1s/pytorch_geometric/blob/master/examples/gnn_explainer.py
from gnn-model-explainer.
Hi @RexYing ,
If I use TensorFlow to train a link prediction model, will GNN explainer also deal with well?
Thank you!
from gnn-model-explainer.
Hi, in this case, you can add a learnable mask in your Tensorflow graph convolution layer, and freeze the other learnable parameter of your network as described in the paper. After optimizing with the explanation objective, you can use the optimized mask to produce explanations. This repository is only for pytorch model, but similar implementation can be easily adapted to Tensorflow.
from gnn-model-explainer.
Hi @RexYing ,
If I use TensorFlow to train a link prediction model, will GNN explainer also deal with well?
Thank you!
hi,how to explain a link prediction model?
from gnn-model-explainer.
Related Issues (20)
- Broken link to Observable in README.md
- The requirements.txt should be changed to make Installation work. HOT 1
- Where is the dataset and what kind of dataset am I supposed to use inorder to train? HOT 1
- While training on Tox21 data: "NameError: name 'io_utils' is not defined" HOT 1
- node_idx_new = sum(neighbors_adj_row[:node_idx])--is it possible the way that node_idx_new is generated may lead to duplicate index?
- Question on Explainer Visualization
- Question about link prediction HOT 3
- Question about run bmname=MUTA
- Generating different explanations' subgraphs from the same trained model by using PyG GNNExplainer HOT 1
- Generating Explanations for REDDIT-BINARY and Mutag dataset HOT 7
- Explain Graph Nets models
- Pytorch Geometric training for synthetic data HOT 1
- Frozen Synthetic Dataset
- Accuracy HOT 1
- Reproduction of multi-instance explanations and prototypes
- Doubt: GNNExplainer on Deep GCNN on Graph Classification Tasks HOT 2
- Use this model explain the graph-level GNN model? HOT 1
- Apply to hetero GNN?
- Observable notebook does not exist
- Question about the loss
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnn-model-explainer.