yoony02 / RL-2022-SRRL

This is the code for "Improving diversity and precision in sequential recommendation via RL"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sequential recommendation with RL

A framework for diverse and accurate recommendation for users in sequential recommendation via reinforcement learning techniques

Setups

Python Pytorch

Datasets

The dataset name must be specified in the "--dataset" argument

After downloaded the datasets, you can put them in the folder data/ like the following.

$ tree
.
├── beauty
│   ├── preprocess_beauty.py
│   ├── Beauty.txt
│   └── item2attributes.json
└── lastfm
    ├── preprocess_lastfm.py
    ├── LastFM.txt
    └── item2attributes.json

And you can preprocess each datasets by running,

python preprocess_{dataset_name}.py

Train and Test

python main.py --dataset lastfm --gpu_num 1

Reference

Project presenstation

Presentation PPT (in Korean)
Presentation Video (in Korean) Video thumbnail

About

This is the code for "Improving diversity and precision in sequential recommendation via RL"


Languages

Language:Python 100.0%