Skip to content

rodriveraai/mds20_returney

Repository files navigation

RETURNEY: Semi-supervised Prediction of the Return Time of a User

Project of "Models of Sequence Data" course, Skoltech, 2020

Problem statement

The problem is to develop a model that learns to predict users' return times from browsing histories of many other users. Some users do not come back, hence, our model needs to be able to both learn from such users' data and predict that some users will not come back during some specified prediction window.

Structure

  • RMTPP - folder with our implementation of Du et al. paper
  • RNNSM - folder with our implementation of Grob et al. paper
  • grobformer - folder with our implementation of RNNSM model based on hawkes transformer
  • data - folder with relevant datasets and helper function for their processing. dataset.py preprocessing can be reused for other datasets. Check the details in the OCON folder.
  • references - folder with relevant existing implementations and their descriptions

The more detailed description of the models are available in the corresponding folders.

Usage

  1. Install the requirements:
pip3 install -r requirements.txt
  1. A model can be trained using train.py script:
python3 train.py 

Training parameters, including the model choice, can be changed in the file config.yaml

The key parameters are the model too train:

model = rmtpp / rnnsm / groobformer

and the metric which the best model is chosen by (if None the model is saved)

validate_by = rmse / recall / auc / none
  1. The model can be tested using test.py script:
python3 test.py 

References

The project is based on the following papers:

About

This is the repository for the Models of Sequence Data 2020 Edition for the project RETURNEY

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages