Code Monkey home page Code Monkey logo

capsgnn-1's Introduction

CapsGNN

This repository contains an official TensorFlow implementation of Capsule Graph Neural Network (CapsGNN).

The implementation of dynamic routing refers to the [code]

Package Version

networkx    2.2
numpy       1.16.2
scipy       1.2.1
argparse    1.1
tensorflow  1.12.1

Basic Usage

Data Preparation

  1. We provide the preprocessing program to generate specific experimental data format. The default raw data format should be .gexf (avalaible at [gexf Dataset]). Each line of the label file represents a graph with the format
    xxx.gexf label

To generate experimental data format:

    $ python3 dataset_utils/preprocessing.py --dataset_input_dir graph_gexf/ENZYMES --output_data_dir data_plk --pickle_v 3 --x_fold 10 --gen_split_file True

Execute

  1. All the hyperparameters can be set in config.py and the training procedure can be executed through:
    $ python3 main.py --dataset_dir data_plk/ENZYMES --epochs 3000 --lambda_val 0.5

Citing

If you find CapsGNN is useful for your research, please consider citing the following paper:

@inproceedings{xinyi2018capsule,
   title={Capsule Graph Neural Network},
   author={Zhang Xinyi and Lihui Chen},
   booktitle={International Conference on Learning Representations},
   year={2019},
   url={https://openreview.net/forum?id=Byl8BnRcYm},
  }

Please send any questions you might have about the codes and/or the algorithm to [email protected].

capsgnn-1's People

Contributors

xinyiz001 avatar

Watchers

 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.