Git Product home page Git Product logo

gnn-lf-hf's Introduction

GNN-LF/HF

WWW2021 : Interpreting and Unifying Graph Neural Networks with An Optimization Framework. [Best Paper Awards Nomination!]

Resources

[Paper] & [PPT] & [Video(in Chinese)] & [Video(in English)]

Environment Settings

  • python == 3.8.5
  • torch == 1.7.1
  • numpy == 1.19.4
  • scipy == 1.6.0
  • networkx == 2.5
  • scikit-learn == 0.24.0
  • pandas == 1.2.0

Data

For wiki-cs dataset, please copy data files Here to path "/data/wiki/"

Usage

Input Parameters

  • (required) -d/--dataset: name for datasets, i.e., cora/citeseer/pubmed/acm/wiki/ms.
  • (required) -t: model type, PPNP = 0; GNN-LF = 1; GNN-HF = 2.
  • (required) -f: propagation form, closed-form = 0; iterative-form = 1.
  • -l/-labelrate: training rate, i.e., 20 nodes per class for training, default = 20.
  • --niter: times for iteration, default = 10.
  • --device: GPU number.
  • --reg_lambda: weight for regularization, default = 5e-3.
  • --lr: learning rate, default = 0.01

Command

  • Closed-form GNN-LF:
python main.py --dataset=cora -t=1 -f=0 --device=0
  • Iter-form GNN-LF:
python main.py --dataset=cora -t=1 -f=1 --device=0

Cite

Please cite our paper if you use this code in your own work:

@inproceedings{zhu2021interpreting,
  title={Interpreting and Unifying Graph Neural Networks with An Optimization Framework},
  author={Zhu, Meiqi and Wang, Xiao and Shi, Chuan and Ji, Houye and Cui, Peng},
  booktitle={Proceedings of the Web Conference 2021},
  pages={1215--1226},
  year={2021}
}

Contact

If you have any questions, please feel free to contact me with [email protected]

gnn-lf-hf's People

Contributors

zhumeiqibupt avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.