GithubHelp home page GithubHelp logo

april211 / wsdm23-gsr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andyjzhao/wsdm23-gsr

1.0 0.0 0.0 7.6 MB

A **revised** implementation of the GSR model proposed in Self-Supervised Graph Structure Refinement for Graph Neural Network in WSDM23.

Home Page: https://arxiv.org/abs/2211.06545

Shell 0.01% Python 7.79% Jupyter Notebook 91.41% C++ 0.36% C 0.43%
contrastive-learning graph-structure-learning self-supervised-learning

wsdm23-gsr's Introduction

WSDM23-GSR

A revised implementation of the GSR model proposed in Self-Supervised Graph Structure Refinement for Graph Neural Network in WSDM23. Please kindly note that this work is inspired by the great work GAuG, especially the adding and removing edges part.

Requirements

  • Nvidia RTX3090 24G
  • Ubuntu 23.10
  • Python == 3.8.5
  • Pytorch == 1.8.1+cu111
  • DGL == cu111-0.6.1
  • SciPy == 1.6.2
  • NetworkX == 2.5.1
  • pytz == 2023.3.post1
  • bidict == 0.22.1
  • pandas == 2.0.3
  • scikit-learn == 1.3.2
  • tqdm == 4.66.1
  • openke from: https://github.com/thunlp/OpenKE (SHA: d70ee89f803adcf923550aa538d1850614c7ab6a)
  • ogb == 1.3.6
  • ipykernel == 6.28.0
  • ipython == 8.12.3
  • jupyter-core == 5.6.1
  • jupyterlab == 4.0.10
  • matplotlib == 3.7.4
  • gensim == 4.2.0

Usage

  • Step 1 : Unzip the data.zip file
  • Step 2: Run the experiments using the command below

to recover our results, specify "-l" option

python root_to_src_dir/src/models/GSR/trainGSR.py -dcora -l

Usage

Experiment Settings

  • dataset: The dataset to run on.
  • gpu: GPU id to use.
  • train_percentage:The train ratio, 0 for default split.
  • load_default_config: Whether load default config or use parsed config.
  • early_stop: Number of epoch for early stop.
  • seed: Training seed.

Model Settings

  • epochs: The maximum epoch to train in the fine-tuning process.
  • intra_weight: The weight of intra contrastive loss, $\alpha$ in the paper.
  • fsim_weight: The weight of feature similarity in estimating edge probability, $\beta$ in the paper.
  • add_ratio: Percentage of non-existing edge to add in the graph refinement process.
  • rm_ratio: Percentage of existing edge to remove in the graph refinement process.
  • fan_out: Number of neighbors to sample in first and second order subgraphs.
  • p_epochs: Number of pre-training epochs.
  • p_batch_size: The pre-training batch size.
  • prt_lr: The pre-training learning rate.

Citation

If you find our work useful, please consider citing our work:

@inproceeding{zhao2023gsr,
  title={Self-Supervised Graph Structure Refinement for Graph Neural Networks},
  author = {Jianan Zhao and Qianlong Wen and Mingxuan Ju and Chuxu Zhang and Yanfang Ye},
  booktitle = {WSDM},
  year      = {2023},
}

wsdm23-gsr's People

Contributors

april211 avatar andyjzhao avatar

Stargazers

Yan 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.