xiaohanhan1019 / CAN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capturing Multi-granularity Interests with Capsule Attentive Network for Sequential Recommendation

This code is used to reproduce the main experiment of our paper.

Requirements

  • Python 3.7.10
  • Pytorch 1.8.0

Datasets

The original dataset can be downloaded from:

The format of the preprocessed dataset is the same as RecBole which can be downloaded from:

The *.inter file should be stored in the ./raw_data folder

Code

  • ./models folder contains all the baselines and our model CAN
  • ./data folder is used to store the processed data

Training

  • First you need to process the data by running./raw_data/preprocess.py, make sure the raw dataset is downloaded and stored in the ./raw_data folder
  • After processing the data, you can train a model by running ./trainer.py
    • The model's configuration can be modified in ./utils/configs.py
  • ./ray_tune.py for tuning the hyper-parameters
    • The model's configuration can be modified in ./utils/tune_configs.py

About


Languages

Language:Python 100.0%