# diffnet **Repository Path**: shzgamelife/diffnet ## Basic Information - **Project Name**: diffnet - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-05-18 - **Last Updated**: 2024-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: 知识图谱 ## README ### Basic Information: This code is released for the papers: Le Wu, Peijie Sun, Yanjie Fu, Richang Hong, Xiting Wang and Meng Wang. A Neural Influence Diffusion Model for Social Recommendation. Accepted by SIGIR2019. [pdf](http://arxiv.org/abs/1904.10322). Le Wu, Junwei Li, Peijie Sun, Richang Hong, Yong Ge, and Meng Wang. DiffNet++: A Neural Influence and Interest Diffusion Network for Social Recommendation. Accepted by IEEE Transactions on Knowledge and Data Engineering in Dec 2020. [pdf](https://arxiv.org/abs/2002.00844) ### Usage: 1. Environment: I have tested this code with python2.7, tensorflow-gpu-1.12.0 3. Run DiffNet: 1. Download the yelp data from this [link](https://drive.google.com/drive/folders/1hIkRDIVI87CUM4xFGjHMeipOlPz97ThX?usp=sharing), and unzip the directories in yelp data to the sub-directory named diffnet of your local clone repository. 2. cd the sub-directory diffnet and execute the command `python entry.py --data_name= --model_name=diffnet --gpu=` 4. Run DiffNet++: 1. Download datasets from this [link](https://drive.google.com/drive/folders/1YAJvgsCJLKDFPVFMX3OG7v3m1LAYZD5R?usp=sharing), and just put the downloaded folder 'data' in the sub-directory named diffnet++ of your local clone repository. 2. cd the sub-directory diffnet++ and execute the command `python entry.py --data_name= --model_name=diffnetplus --gpu=` 5. If you have any available gpu device, you can specify the gpu id, or you can just ignore the gpu id. Following are the command examples: `python entry.py --data_name=yelp --model_name=diffnet` `python entry.py --data_name=yelp --model_name=diffnetplus` ### Citation: ``` The dataset flickr we use from this paper: @article{HASC2019, title={A Hierarchical Attention Model for Social Contextual Image Recommendation}, author={Le, Wu and Lei, Chen and Richang, Hong and Yanjie, Fu and Xing, Xie and Meng, Wang}, journal={IEEE Transactions on Knowledge and Data Engineering}, year={2019} } The algorithm is from DiffNet and DiffNet++: @inproceedings{DiffNet2019. title={A Neural Influence Diffusion Model for Social Recommendation}, author={Le Wu, Peijie Sun, Yanjie Fu, Richang Hong, Xiting Wang and Meng Wang}, conference={42nd International ACM SIGIR Conference on Research and Development in Information Retrieval}, year={2019} } @article{wu2020diffnet++, title={DiffNet++: A Neural Influence and Interest Diffusion Network for Social Recommendation}, author={Wu, Le and Li, Junwei and Sun, Peijie and Ge, Yong and Wang, Meng}, journal={arXiv preprint arXiv:2002.00844}, year={2020} } We utilized the key technique in following paper to tackle the graph oversmoothing issue, and we have annotated the change in line 114 in diffnet/diffnet.py, if you want to konw more details, please refer to: @inproceedings{ title={Revisiting Graph based Collaborative Filtering: A Linear Residual Graph Convolutional Network Approach}, author={Lei Chen, Le Wu, Richang Hong, Kun Zhang, Meng Wang}, conference={The 34th AAAI Conference on Artificial Intelligence (AAAI 2020)}, year={2020} } ``` ### Author contact: Email: sun.hfut@gmail.com, lijunwei.edu@gmail.com