Git Product home page Git Product logo

graphnn's Introduction

graphnn

Prerequisites

Tested under Ubuntu 14.04 and Mac OSX 10.10.5

Download and install cuda from https://developer.nvidia.com/cuda-toolkit
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install cuda

in .bashrc, add the following path

export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
Download and install intel mkl

in .bashrc, add the following path

source {path_to_your_intel_root/name_of_parallel_tool_box}/bin/psxevars.sh
export MKL_ROOT={path_to_your_intel_root}/mkl
Install cppformat
check https://github.com/cppformat/cppformat for help
Install Spiral-wht
wget http://www.ece.cmu.edu/~spiral/software/spiral-wht-1.8.tgz
tar -zxvf spiral-wht-1.8.tgz
cd spiral-wht-1.8
./configure
make
make install

Build static library

cp make_common.example make_common
modify configurations in make_common file
make

Run example

Run mnist
cd examples/mnist
make
./run_exp.sh
Run graph classification
cd examples/graph_classification
make
./local_run.sh

The 5 datasets under the data/ folder are commonly used in graph kernel. 

Reference

@article{dai2016discriminative,
  title={Discriminative Embeddings of Latent Variable Models for Structured Data},
  author={Dai, Hanjun and Dai, Bo and Song, Le},
  journal={arXiv preprint arXiv:1603.05629},
  year={2016}
}

graphnn's People

Contributors

hanjun-dai avatar

Watchers

James Cloos 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.