Skip to content

Pytorch implementation for paper: CauseRec: Counterfactual User Sequence Synthesis for Sequential Recommendation (SIGIR21)

Notifications You must be signed in to change notification settings

LFM-bot/CauseRec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CauseRec

Pytorch implementation for paper: CauseRec: Counterfactual User Sequence Synthesis for Sequential Recommendation (SIGIR21)

We implement CauseRec (CauseItem) in Pytorch. We generate positive and negative samples by for loop, if there is enough memory, we can change the function counterfactual_neg_sample_for_loop/ counterfactual_pos_sample_for_loop to counterfactual_neg_sample/counterfactual_pos_sample for parallel computation, which can speed up the training.

Datasets

The book dataset is available (obtained from https://github.com/THUDM/ComiRec).

Quick Start

You can run the model with the following code:

python runCauseRec.py --dataset book --max_len 20

About

Pytorch implementation for paper: CauseRec: Counterfactual User Sequence Synthesis for Sequential Recommendation (SIGIR21)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages