Giter VIP home page Giter VIP logo

cc-gnn's Introduction

CC-GNN

To use CC-GNN for accelerating online GNN computation, first use the community detection package provided in the CPM or LabelPropagation folder and save the results in the corresponding output folder. Then use the get_super_graph(_cpm).py script to extract the Community Contracted Graph (CC-Graph) to the prvious output folder. Finally, use the train_super_graph.py script to perform GNN training on the super graph and obtain the reconstructed node embedding.

For example, to use LPA on the cora dataset, first go to the LabelProgation folder under root. Prepare the edge csv file in the data folder and run

python src/label_propagation.py --input data/cora.csv --assignment-output output/cora.json --weighting unit

This will put the community assignment result in the file LabelPropagation/output/cora.json. Then go to the root folder and run

python get_super_graph.py --dataset cora --dgl-dir <directory to your DGL datasets> --ogb-dir <directory to your OGB datasets>

This by default will store the CC-Graph to the LabelPropagation/output folder. Finally, run

python train_super_graph.py --dataset cora --gpu 0

for GNN training. The detailed descriptions of available parameters to pass can be found in the python scripts.

The links to other baselines can be found here.

Model Code
GraphSAGE https://github.com/williamleif/GraphSAGE
FastGCN https://github.com/matenure/FastGCN
ClusterGCN https://github.com/google-research/google-research/tree/master/cluster_gcn
GraphSAINT https://github.com/GraphSAINT/GraphSAINT
GBP https://github.com/chennnM/GBP
GCoarsen https://github.com/szzhang17/Scaling-Up-Graph-Neural-Networks-Via-Graph-Coarsening
GCOND https://github.com/ChandlerBang/GCond

cc-gnn's People

Contributors

fr8nkl avatar

Stargazers

Ramsey avatar Lea avatar qyzl7 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.