Coder Social home page Coder Social logo

rryoung98 / ogb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snap-stanford/ogb

0.0 1.0 0.0 4.25 MB

Benchmark datasets, data loaders, and evaluators for graph machine learning

Home Page: https://ogb.stanford.edu

License: MIT License

Python 100.00%

ogb's Introduction

Differential Group Normalization for GraphCONV and GCN

This experiment is based on stanford OGB (1.2.1) benchmark. The description of 《Towards Deeper Graph Neural Networks with Differentiable Group Normalization》 is avaiable here. The steps are:

Note!

We propose DGN GraphCONV and DGN GCN , where we extend our base model's width by implementing DGN, which allows for models to be deeper by incorporating soft clustering to the normalization.

Environment:

We recommend importing the given ipython notebook into Google Colab, which provides free GPUs and most of the packages needed to run this code already installed.

Baseline:

Search for occurences of the code self.bn in the GNN class and comment that out (should be in two places) in order to run the baseline model without DGN. If you want to change between GCN and GraphConv, simply replace occurence of GraphConv() in __init__() with GCNConv() and vice-versa.

Running the Code

Running the code is simple, just run all the cells in the notebook. In particular, running the last cell will perform one run of an experiment with the given random seed appiled to the main() function at the bottom of the last cell. In order to change the random seed for another run, simply change the value passed in to main.

The detailed hyperparameter is:

num_layers          3
hidden_channels     256
num_batch_groups    2
dropout             0.0
batch_size          64 * 1024
lr                  1e-3
epochs              400

Reference performance for OGBL-collab:

Model Test Accuracy Valid Accuracy Parameters Hardware
GCN 0.4475 ± 1.07 0.5263 ± 0.150 296,449 Tesla K80
GCN+DGN 0.4916 ± 0.603 0.5778 ± 0.636 429,571 Tesla K80
GraphCONV 0.4534 ± 0.85 0.5378 ± 0.777 460,289 Tesla K80
GraphCONV+DGN 0.4685 ± 0.336 0.5527 ± 0.311 593,411 Tesla K80

ogb's People

Contributors

bowenliu16 avatar bpagon13 avatar danielegrattarola avatar dongkwan-kim avatar hongbo-miao avatar hyren avatar lukecavabarrett avatar rryoung98 avatar rusty1s avatar weihua916 avatar yelrose 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.