GithubHelp home page GithubHelp logo

dnx's Introduction

DnX and FastDnX

This is repo for Distill n' Explain: explaining graph neural networks using simple surrogates. This folder contains the source code of using DnX and FastDnX to explain node predictions.

Authors:

Requirements

We have built this implementation using:

  • PyTorch
  • PyTorch Geometric

Folder description:

  • trained_gcn: contains the models that will be explained
  • trained_distiller: contains the distilled models
  • explanation: contains the explanations generated by our models

file description

  • model.py: the model used to distill.
  • utils.py: all functions used to load, save and evaluate the dataset
  • main_distiller.py: code with the functions to distill the models to be explained
  • main_syn.ipynb: notebook to perform the task of generating explanations for the synthetic datasets

Datasets:

The nomenclature (syn1, syn2 ...., syn6) is used to facilitate experiments

  • BA-HouseShapes (syn1),
  • BA-Community (syn2),
  • BA-Grids (syn3),
  • Tree-Cycles (syn4),
  • TreeGrids (syn5),
  • BA-Bottle-Shaped (syn6)

To run the DnX and Fast DnX explainers for the synthetic datasets just run the notebook main_syn.ipynb:

Cite

@inproceedings{distillnexplain2023,
  title={Distill n' Explain: explaining graph neural networks using simple surrogates},
  author={T. A. Pereira and E. J. Nascimento and L. E. Resck and D. Mesquita and A. H. Souza},
  booktitle={Artificial Intelligence and Statistics (AISTATS)},
  year={2023}
}

dnx's People

Contributors

tamararruda avatar erikjhones avatar weakly-informative avatar

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.