Giter VIP home page Giter VIP logo

correctandsmooth-dgl's Introduction

DGL Implementation of CorrectAndSmooth

This DGL example implements the GNN model proposed in the paper Combining Label Propagation and Simple Models Out-performs Graph Neural Networks. For the original implementation, see here.

Contributor: xnuohz

Requirements

The codebase is implemented in Python 3.7. For version requirement of packages, see below.

dgl 0.6.0.post1
torch 1.7.0
ogb 1.3.0

The graph datasets used in this example

Open Graph Benchmark(OGB). Dataset summary:

Dataset #Nodes #Edges #Node Feats Metric
ogbn-arxiv 169,343 1,166,243 128 Accuracy
ogbn-products 2,449,029 61,859,140 100 Accuracy

Usage

Training a Base predictor and using Correct&Smooth which follows the original hyperparameters on different datasets.

ogbn-arxiv
  • MLP + C&S
python main.py --dropout 0.5
python main.py --pretrain --correction-adj DA --smoothing-adj AD
  • Linear + C&S
python main.py --model linear --dropout 0.5 --epochs 1000
python main.py --model linear --pretrain --correction-alpha 0.8 --smoothing-alpha 0.6 --correction-adj AD
  • GAT + C&S
python main.py --model gat --epochs 2000 --lr 0.002 --dropout 0.75
python main.py --model gat --pretrain
ogbn-products
  • Linear + C&S
python main.py --dataset ogbn-products --model linear --dropout 0.5 --epochs 1000 --lr 0.1
python main.py --dataset ogbn-products --model linear --pretrain --correction-alpha 0.6 --smoothing-alpha 0.9

Performance

ogbn-arxiv

MLP MLP + C&S Linear Linear + C&S GAT GAT + C&S
Results(Author) 55.58 68.72 51.06 70.24 73.28 73.64
Results(DGL) 56.12 68.63 52.49 71.69 72.59 73.30

ogbn-products

Linear Linear + C&S
Results(Author) 47.67 82.34
Results(DGL) 47.71 79.57

Speed

ogb-arxiv Time GPU Memory Params
Author, Linear + C&S 6.3 * 10 ^ -3 1,248M 5,160
DGL, Linear + C&S 5.6 * 10 ^ -3 1,252M 5,160

correctandsmooth-dgl's People

Contributors

xnuohz avatar

Watchers

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