Code Monkey home page Code Monkey logo

adaptivegcl's Introduction

AdaptiveGCL

This is the PyTorch implementation for AdaptiveGCL proposed in the paper Adaptive Graph Contrastive Learning for Recommendation.

1. Running environment

We develop our codes in the following environment:

  • python==3.9.13
  • numpy==1.23.1
  • torch==1.11.0
  • scipy==1.9.1

2. Datasets

Dataset # User # Item # Interaction Interaction Density
Last.FM 1,892 17,632 92,834 2.8 × $10^{-3}$
Yelp 42,712 26,822 182,357 1.6 × $10^{-4}$
BeerAdvocate 10,456 13,845 1,381,094 9.5 × $10^{-3}$

3. How to run the codes

  • Last.FM
python Main.py --data lastfm --eps 1e-3 --gamma -0.95
  • Yelp
python Main.py --data yelp --eps 1e-3 --ssl_reg 1 --ib_reg 1e-2
  • BeerAdvocate
python Main.py --data beer --ib_reg 1 --eps 1e-3 --lambda0 1e-2

adaptivegcl's People

Contributors

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