Giter Site home page Giter Site logo

guanghaoliang / polygcl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenjy-count/polygcl

0.0 0.0 0.0 11.69 MB

PyTorch implementation of "PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters"

Shell 2.76% Python 97.24%

polygcl's Introduction

PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters

This repository contains a PyTorch implementation of ICLR 2024 paper "PolyGCL: GRAPH CONTRASTIVE LEARNING via Learnable Spectral Polynomial Filters".

Environment Settings

  • pytorch 1.11.0
  • numpy 1.20.3
  • torch-geometric 1.7.2
  • dgl-cu113 0.8.2
  • scipy 1.7.1
  • seaborn 0.11.2
  • scikit-learn 0.24.2

Datasets

We provide the small datasets in the folder 'data'. You can access the heterophilic datasets and the large heterophilic graph arXiv-year via heterophilous-graphs and LINKX respectively.

Reproduce the results

On real-world datasets

You can run the following commands directly.

sh exp_PolyGCL.sh

Heterophilic datasets:

cd HeterophilousGraph
sh exp_PolyGCL.sh

Large heterophilic graph arXiv-year:

cd non-homophilous
sh exp_PolyGCL.sh

On synthetic datasets

Generate the cSBM data firstly.

cd cSBM
sh create_cSBM.sh

Then run the following command directly.

sh run_cSBM.sh

Acknowledgements

This project includes code or ideas inspired by the following repositories:

Citation

@inproceedings{
    chen2024polygcl,
    title={Poly{GCL}: {GRAPH} {CONTRASTIVE} {LEARNING} via Learnable Spectral Polynomial Filters},
    author={Jingyu Chen and Runlin Lei and Zhewei Wei},
    booktitle={The Twelfth International Conference on Learning Representations},
    year={2024},
    url={https://openreview.net/forum?id=y21ZO6M86t}
}

Contact

If you have any questions, please feel free to contact me with [email protected].

polygcl's People

Contributors

chenjy-count 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.