Giter Site home page Giter Site logo

hyper-sagnn's Introduction

Hyper-SAGNN: a self-attention based graph neural network for hypergraphs

This is an implementation of "Hyper-SAGNN: a self-attention based graph neural network for hypergraphs" (ICLR2020)

The datasets included in this repo are originally from DHNE (https://github.com/tadpole/DHNE)

Requirements

python >= 3.6.8

Tensorflow >= 1.0.0 (< 2.0.0)

Pytorch >= 1.0

Usage

To run the code:

cd Code
python main.py --data wordnet -f adj

Change the following arguments to reproduce corresponding results from the manuscript,

The --data argument can take "GPS", "drug", "MovieLens", "wordnet". This argument is case sensitive

The -f, --feature argument can take "adj" or "walk" represents encoder based approach and random walk based approach respectively.

Other arguments are as followed:

parser.add_argument('--dimensions', type=int, default=64,
                    help='Number of dimensions. Default is 64.')

parser.add_argument('-l', '--walk-length', type=int, default=40,
                    help='Length of walk per source. Default is 40.')

parser.add_argument('-r', '--num-walks', type=int, default=10,
                    help='Number of walks per source. Default is 10.')

parser.add_argument('-k', '--window-size', type=int, default=10,
                    help='Context size for optimization. Default is 10.')

Cite

If you want to cite our paper:

@inproceedings{
zhang2020hypersagnn,
title={Hyper-{SAGNN}: a self-attention based graph neural network for hypergraphs},
author={Zhang, Ruochi and Zou, Yuesong and Ma, Jian},
booktitle={International Conference on Learning Representations (ICLR)},
year={2020}
}

hyper-sagnn's People

Contributors

ma-compbio avatar ruochiz 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.