# HGRU4Rec
Code for our ACM RecSys 2017 paper "Personalizing Session-based Recommendation with Hierarchical Recurrent Neural Networks".
See the paper: [https://arxiv.org/abs/1706.04148](https://arxiv.org/abs/1706.04148)
## Setup
This code is based of GRU4Rec ([https://github.com/hidasib/GRU4Rec](https://github.com/hidasib/GRU4Rec)).
As the original code, it is written in Python 3.4 and requires Theano 0.8.0+ to run efficiently on GPU.
In addition, this code uses H5Py and PyTables for efficient I/O operations.
We suggest to use `virtualenv` or `conda` (preferred) together with `requirements.txt` to set up a virtual environment before running the code.
## Experiments on the XING dataset
This repository comes with the code necessary to reproduce the experiments on the XING dataset.
This dataset was released to the participants of the 2016 Recsys Challenge.
1) Download the dataset (see [here](http://2016.recsyschallenge.com/), though it is no longer available. See format in [this comment](https://github.com/mquad/hgru4rec/issues/1#issuecomment-381060517)). You will only need the file `interactions.csv`.
2) `cd data/xing`, then run `python build_dataset.py <path_to_interactions>` to build the dataset. It will be saved under `data/xing/dense/last-session-out/sessions.hdf`.
3) To run HGRU on this dataset, go to `scripts` folder.
Then run `sh xing_dense_small.sh` to execute _small_ HRNN networks, or run `sh xing_dense_large.sh` to execute _large_ HRNN networks. See the paper for further details (notice that we used random seeds in \{0..9\} in our experiments).
NOTE: These experiments run quite efficiently on CPU too (small networks train and evaluate in ~20 minutes on a 8-core Intel(R) Xeon(R) CPU E3-1246 v3 @ 3.50GHz).
我们的ACMRecSys2017论文“使用分层递归神经网络个性化基于会话的推荐”的代码_Python_Shell_下载.zip
版权申诉
143 浏览量
2023-04-23
09:51:17
上传
评论
收藏 24KB ZIP 举报
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
最新资源
- 基于C和C++的二维绘制工具设计源码 - DrawPro
- Object.defineProperty 的 IE 补丁object-defineproperty-ie-master.zip
- 整卷预览.mhtml
- MySQL是一种广泛使用的开源关系型数据库管理系统,它提供了丰富的SQL语句用于数据库的创建、查询、更新和管理 以下是一些常见的
- MySQL是一种广泛使用的开源关系型数据库管理系统,它提供了丰富的SQL语句用于数据库的创建、查询、更新和管理 以下是一些常见
- MySQL是一种广泛使用的开源关系型数据库管理系统,它提供了丰富的SQL语句用于数据库的创建、查询、更新和管理 以下是一些常见的
- 基于Javascript的结婚请帖设计源码 - Invitation
- mysql语句大全及用法
- mysql语句大全及用法
- mysql语句大全及用法
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈