Skip to content

Pytorch implementation of session-based recommendation methods.

License

Notifications You must be signed in to change notification settings

FelixHilyer/SessionRec-pytorch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Session-based Recommendation Library

MSGIFSR

This is the implementation of Learning Multi-granularity User Intent Unit for Session-based Recommendation from WSDM 2022 and some other session-based recommendation models. We use DGL library and mainly follow the implementation of lessr. (Tianwen Chen, Raymond Wong, KDD 2020)

Baselines

We also reimplemented several current session-based recommendation baselines and tuned them through our best effert.

Dataset

Download and extract the following datasets and put the files in the dataset folder named under datasets/$DATASETNAME

Then run the code in src/utils/data/preprocess to process them.

Run

first create the enveriment.

conda env create -f environment.yml

then

bash start.sh $MODEL_NAME $DATASET_NAME

Experiment Results

We find that keeping the original order of training data makes the result better. It is due to the way of splitting the dataset. Current public session-based recommendation datasets usually split train/test data according to time. This will make the distribution of samples at the latter positions of the training data more similar to the test data than than those at the former positions. Without shuffling the model will fit better. This is a common phemonemon in recommender systems since user interest evolves fast and too early samples will not help the recommendation.

About

Pytorch implementation of session-based recommendation methods.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%