Giter Site home page Giter Site logo

tufts-ml / graph-generation-vi Goto Github PK

View Code? Open in Web Editor NEW
26.0 9.0 6.0 3.68 MB

This repository contains PyTorch implementation of the following paper: "Order Matters: Probabilistic Modeling of Node Sequence for Graph Generation"

Python 99.34% Shell 0.66%
graph-neural-networks graph-generation variational-inference graph-isomorphism permutation-algorithms

graph-generation-vi's Introduction

Order Matters: Probabilistic Modeling of Node Sequencefor Graph Generation

This repository contains PyTorch implementation of the following paper: "Order Matters: Probabilistic Modeling of Node Sequence for Graph Generation"

0. Environment Setup

enviroment setup: "run conda install -f enviroment.yml"

installation of Graph automorphism library: https://web.cs.dal.ca/~peter/software/pynauty/html/install.html

1. Experiment

#DGMG
sh experiments/DGMG_caveman_small.sh
sh experiments/DGMG_ENZYMES.sh
#GraphRNN
sh experiments/GraphRNN_caveman_small.sh
sh experiments/GraphRNN_Lung.sh
#Graphgen
sh experiments/Graphgen_citeseer_small.sh
sh experiments/Graphgen_ENZYMES.sh


2. Training

To list the arguments, run the following command:

python main.py -h

To train the given model on Lung dataset, run the following:

python main.py \
    --graph_tyep Lung                                  \
    --note <GraphRNN, DGMG, Graphgen>                  \
    --sample_size 16                                   \
    --gcn_type <gat, gcn, appnp>                       \
    --max_cr_iteration 5                               \
    --enable_gcn     

To train the given model on ENZYMES dataset, run the following:

python main.py \
    --graph_tyep ENZYMES                               \
    --note <GraphRNN, DGMG, Graphgen>                  \
    --sample_size 16                                   \
    --gcn_type <gat, gcn, appnp>                       \
    --max_cr_iteration 5                               \
    --enable_gcn     

To train the given model on caveman_small dataset, run the following:

python main.py \
    --graph_tyep caveman_small                         \
    --note <GraphRNN, DGMG, Graphgen>                  \
    --sample_size 16                                   \
    --gcn_type <gat, gcn, appnp>                       \
    --max_cr_iteration 5                               \
    --enable_gcn     

To train the given model on citeseer_small dataset, run the following:

python main.py \
    --graph_tyep citeseer_small                        \
    --note <GraphRNN, DGMG, Graphgen>                  \
    --sample_size 16                                   \
    --gcn_type <gat, gcn, appnp>                       \
    --max_cr_iteration 5                               \
    --enable_gcn     

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.