Skip to content

cksruf91/recomm-hrnn-pytorch

Repository files navigation

Hierarchical Recurrent Neural Networks Pytorch version

Unofficial implementation of Personalizing Session-based Recommendations with Hierarchical Recurrent Neural Networks

work in progress

Dataset

cd {project Dir}/recomm-hrnn-pytorch/datasets/movielens
wget https://files.grouplens.org/datasets/movielens/ml-1m.zip
unzip ml-1m.zip
cd {project Dir}/recomm-hrnn-pytorch/datasets/movielens
wget https://files.grouplens.org/datasets/movielens/ml-10m.zip
unzip ml-10m.zip

Preprocess data

python preprocess.py -d 1M

Train model

example

python train_hrnn.py -d 1M -k 10 -lr 0.1 -v 0.0.1

Inference model

python inference.py -d 1M -w hrnn_v0.0.1_e03-loss0.2424.zip -k 10 --user 4452

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published