Giter VIP home page Giter VIP logo

csa's Introduction

CSA

This repo is a tf implementation of "Contrastive State Augmentations for Reinforcement Learning-Based Recommender Systems" (SIGIR 2023). If you have any question, please open an issue or contact [email protected].

Dependencies

  • cuda 11.2
  • Python 3.7
  • Tensorflow-gpu 2.6.0
  • pandas
  • numpy

Datasets

We provide a runnable version of RC15 and RetailRocket. You can run this program directly using dataset in "Google Drive". You should download and move it under "./data/."

If you want to get "meituan" dataset and more processing details, please contact [email protected].

Setup

Make sure the following packages are installed with the correct version.

conda install tensorflow-gpu==2.6.0
conda install pandas
conda install numpy
pip install trfl
pip install tensorflow-probability==0.14.0 

Get started

The following commands can be used to train and evaluate CSA based on GRU4Rec:

cd code/GRU4REC/
python CSA_N.py

You need to modify the directory of dataset and set hyperparameters for different base models and data according to the data provided in the paper.

Reference

@article{ren2023contrastive,
  title={Contrastive State Augmentations for Reinforcement Learning-Based Recommender Systems},
  author={Ren, Zhaochun and Huang, Na and Wang, Yidan and Ren, Pengjie and Ma, Jun and Lei, Jiahuan and Shi, Xinlei and Luo, Hengliang and Jose, Joemon M and Xin, Xin},
  journal={arXiv preprint arXiv:2305.11081},
  year={2023}
}

csa's People

Contributors

hn-rs avatar artemisann 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.