# Neural Graph Collaborative Filtering
This is my PyTorch implementation for the paper:
>Xiang Wang, Xiangnan He, Meng Wang, Fuli Feng, and Tat-Seng Chua (2019). Neural Graph Collaborative Filtering, [Paper in ACM DL](https://dl.acm.org/citation.cfm?doid=3331184.3331267) or [Paper in arXiv](https://arxiv.org/abs/1905.08108). In SIGIR'19, Paris, France, July 21-25, 2019.
The TensorFlow implementation can be found [here](<https://github.com/xiangwang1223/neural_graph_collaborative_filtering>).
## Introduction
My implementation mainly refers to the original TensorFlow implementation. It has the evaluation metrics as the original project. Here is the example of Gowalla dataset:
```
Best Iter=[38]@[32904.5] recall=[0.15571 0.21793 0.26385 0.30103 0.33170], precision=[0.04763 0.03370 0.02744 0.02359 0.02088], hit=[0.53996 0.64559 0.70464 0.74546 0.77406], ndcg=[0.22752 0.26555 0.29044 0.30926 0.32406]
```
Hope it can help you!
## Environment Requirement
The code has been tested under Python 3.6.9. The required packages are as follows:
* pytorch == 1.3.1
* numpy == 1.18.1
* scipy == 1.3.2
* sklearn == 0.21.3
## Example to Run the Codes
The instruction of commands has been clearly stated in the codes (see the parser function in NGCF/utility/parser.py).
* Gowalla dataset
```
python main.py --dataset gowalla --regs [1e-5] --embed_size 64 --layer_size [64,64,64] --lr 0.0001 --save_flag 1 --pretrain 0 --batch_size 1024 --epoch 400 --verbose 1 --node_dropout [0.1] --mess_dropout [0.1,0.1,0.1]
```
* Amazon-book dataset
```
python main.py --dataset amazon-book --regs [1e-5] --embed_size 64 --layer_size [64,64,64] --lr 0.0005 --save_flag 1 --pretrain 0 --batch_size 1024 --epoch 200 --verbose 50 --node_dropout [0.1] --mess_dropout [0.1,0.1,0.1]
```
## Supplement
* The parameter `negative_slope` of LeakyReLu was set to 0.2, since the default value of PyTorch and TensorFlow is different.
* If the arguement `node_dropout_flag` is set to 1, it will lead to higher calculational cost.
没有合适的资源?快使用搜索试试~ 我知道了~
NGCF-PyTorch:神经图协同过滤的PyTorch实现

共21个文件
txt:8个
py:8个
md:4个

需积分: 49 16 下载量 144 浏览量
2021-05-07
02:53:31
上传
评论 3
收藏 11.71MB ZIP 举报
温馨提示
神经图协同过滤 这是我对本文的PyTorch实现: 王翔,何湘南,王萌,冯福利和蔡达生(2019)。 神经图协同过滤, 或。 在SIGIR'19,法国巴黎,2019年7月21日至25日。 TensorFlow实现可以在找到。 介绍 我的实现主要是指原始的TensorFlow实现。 它具有与原始项目一样的评估指标。 这是Gowalla数据集的示例: Best Iter=[38]@[32904.5] recall=[0.15571 0.21793 0.26385 0.30103 0.33170], precision=[0.04763 0.03370 0.02744 0.02359 0.02088], hit=[0.53996 0.64559 0.70464 0.74546 0.77406], ndcg=[0.22752 0.26555 0.29044 0.30926 0.32406]
资源推荐
资源详情
资源评论





格式:pdf 资源大小:60.4KB 页数:2


格式:pdf 资源大小:74.7KB 页数:4










格式:zip 资源大小:49.4KB


格式:zip 资源大小:366.1KB


格式:zip 资源大小:34.0KB





收起资源包目录




























共 21 条
- 1
资源评论


张一库
- 粉丝: 46
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 试析人工智能对会计行业的影响及应对.docx
- 人工智能与新艺术生态.docx
- 虚拟机技术在计算机机房管理中的合理运用.docx
- 一线互联网大厂 Java 核心面试题:基础、异常、集合、并发编程等全涵盖
- C语言程序学生成绩管理.doc
- ab-PLC工程实例-包含Rslogix硬件组态、设置、编程与下载.doc
- 人工智能时代正在开启.docx
- 园区物联网项目实施专业技术方案.docx
- 计算机应用基础知识试题带答案.doc
- 最新互联网区块链商业创业计划书PPTppt模板.pptx
- 试论高中信息技术教学中网络合作学习的应用.docx
- 李军胜PLC课程设计.docx
- 打气球课设研究报告jsp.doc
- 基于计算思维与翻转课堂的计算机应用基础教学改革.docx
- 微博数据采集及爬虫实现:含主体与评论内容的网页解析完整代码
- Web服务的企业ERP与电子商务的集成分析.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
