Code Monkey home page Code Monkey logo

Comments (4)

RexYing avatar RexYing commented on July 30, 2024

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.

zrypscs avatar zrypscs commented on July 30, 2024

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.

RexYing avatar RexYing commented on July 30, 2024

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.

ReadyTeresa avatar ReadyTeresa commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.