GithubHelp home page GithubHelp logo

junxia97 / progcl Goto Github PK

View Code? Open in Web Editor NEW
41.0 1.0 3.0 34 KB

[ICML 2022] "ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning"

Python 100.00%
contrastive-learning graph-neural-networks graph-self-supervised-learning hard-negative-mining icml-2022

progcl's Introduction

ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning (ICML 2022)

PyTorch implementation for ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning accepted by ICML 2022.

Requirements

  • Python 3.7.4
  • PyTorch 1.7.0
  • torch_geometric 1.5.0
  • tqdm

Training & Evaluation

ProGCL-weight:

python train.py --device cuda:0 --dataset Amazon-Computers --param local:amazon-computers.json --mode weight

ProGCL-mix:

python train.py --device cuda:0 --dataset Amazon-Computers --param local:amazon-computers.json --mode mix

Useful resources for Pretrained Graphs Neural Networks

Citation

@inproceedings{xia2022progcl,
  title={ProGCL: Rethinking Hard Negative Mining in Graph Contrastive Learning},
  author={Xia, Jun and Wu, Lirong and Wang, Ge and Li, Stan Z.},
  booktitle={International conference on machine learning},
  year={2022},
  organization={PMLR}
}

progcl's People

Contributors

junxia97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

progcl's Issues

model.py文件之中batched_semi_loss_bmm函数似乎存在bug

夏博士您好,我在运行您的代码的时候出现了bug,代码运行过程之中,loss = nan
经过排查,应该是between_sim = f(between_sim)写成了between_sim = f(refl_sim)
但是在修改之后,运行到batched_semi_loss_bmm函数的时候仍然出现了数据维度对不上的问题

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.