Giter Site home page Giter Site logo

gaan's Introduction

GaAN

The MXNet implementation of GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphs in UAI 2018.

We only support python3!

Installation

Compile the MXNet operators by following the guide in seg_ops_cuda. Install the graph sampler by following the guide in GraphSampler.

python setup.py develop

Download datasets

You can download the datasets via the *download_data.py script. The usage is like

python download_data.py --dataset ppi

The --dataset hyperparameter can be 'cora', 'ppi', and 'reddit'.

Run experiments

The script is experiments/static_graph/sup_train_sample.py.

Citation

@inproceedings{zhang18,
  author    = {Jiani Zhang and Xingjian Shi and Junyuan Xie and Hao Ma and Irwin King and Dit{-}Yan Yeung},
  title     = {GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphs},
  booktitle = {Proceedings of the Thirty-Fourth Conference on Uncertainty in Artificial Intelligence},
  pages     = {339--349},
  year      = {2018}
}

gaan's People

Contributors

jennyzhang0215 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gaan's Issues

AttributeError: module 'mxnet.symbol.contrib' has no attribute 'seg_pool'?

I download the "incubator-mxnet" in the same dir with "GaAN", and copy files as the "README.md". But when i run the "run.sh" in the dir of "cfg_ppi_sup", but it still not works. The problem is:

  File "/home/augf/GaAN/mxgraph/layers/aggregators.py", line 518, in hybrid_forward
    max_pool_data = F.contrib.seg_pool(data=max_pool_data,
AttributeError: module 'mxnet.symbol.contrib' has no attribute 'seg_pool'

And the "README.md" in GraphSampler, what's the meaning of "end points" , "ind_ptr" and "node_ids" and what's the advantage of using this format?
In fact, I want to test the accuary of 'cora' dataset in your model in cpu. Could you give me a python scripts for preprocessing the original dataset and runing the model?

Failed to recompile mxnet with custom seg_ops

I've followed the README to clone the mxnet and copied GaAN's custom operators. But when I run "make", seg_op.cc returned with serveral errors like:
.../incubator-mxnet/src/operator/contrib/seg_op.cc:371:18: error: ‘NodePtr’ in namespace ‘nnvm’ does not name a type; did you mean ‘NodeEntry’?

.../incubator-mxnet/src/operator/contrib/seg_op.cc:380:2: error: ‘struct mxnet::op::<lambda(int)>’ has no member named ‘add_argument’ 380 | .add_argument("data", "NDArray-or-Symbol", "The input data.")

Any possible solution?
gcc verion: 9.4.0
g++ version 9.4.0
mxnet version: linux_cu112.cmake
cuda version 11.2

brief previus steps:
git clone {mxnet}
cp {seq_op*} {mxnet}/src/contrib
mkdir build
cd build
cmake ..
make -j6

all previous built-in operators had complied fine.
图片

ModuleNotFoundError: No module named 'mxgraph._graph_sampler'

Traceback (most recent call last):
  File "experiments/static_graph/sup_train_sample.py", line 4, in <module>
    from mxgraph.graph import *
  File "/home/augf/GaAN/mxgraph/graph.py", line 4, in <module>
    import mxgraph._graph_sampler as _graph_sampler
ModuleNotFoundError: No module named 'mxgraph._graph_sampler'

can not download the dataset ppi

when i try the command:

python download_data.py --dataset ppi

i get this problem:

urllib.error.URLError: <urlopen error [Errno 111] Connection refused

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.