Giter VIP home page Giter VIP logo

sian's Introduction

SIAN

Code and data for ECML-PKDD paper "Social Influence Attentive Neural Network for Friend-Enhanced Recommendation"

Requirements

  • Python 2.7
  • PyTorch 0.4.1
  • numpy
  • scipy
  • My machine with two GPUs (NVIDIA GTX-1080 *2) and two CPUs (Intel Xeon E5-2690 * 2)

Description

├── baselines  # baseline code
│   ├── Eval4Baselines.py

├── code  # Our Model: SIAN
│   ├── Attention.py  # attention layer
│   ├── DataUtil.py  # data loader 
│   ├── Evaluation.py  # model evaluation
│   ├── FeatureAgg.py  # attentive feature aggregator 
│   ├── Fusion.py  # feature fusion layer 
│   ├── HeteInf.py  # the main class for SIAN
│   ├── InfluenceProp.py  # social influence coupler 
│   ├── Logging.py  #log

│   └── trainHeteInf.py  # the main function for SIAN
└── data  # dataset
    ├── Data4Baselines.ipynb  #
    ├── DataProcessor.ipynb
    ├── ItemProfileEmbed.ipynb
    ├── WechatTencent.ipynb
    ├── wxt  # FWD dataset 
    │   ├── biz2id
    │   ├── biz_profile.npy
    │   ├── item2id
    │   ├── item_profile.npy
    │   ├── user2id
    │   ├── user_profile.npy
    │   ├── wxt.att.analysis
    │   ├── wxt.interaction.graph
    │   ├── wxt.item.biz
    │   ├── wxt.social.graph
    │   ├── wxt.test.rating.712
    │   ├── wxt.train.rating.712
    │   ├── wxt.user.biz
    │   └── wxt.val.rating.712
    ├── wxt.ipynb
    ├── yelp  # yelp dataset
    │   ├── item_profile.npy
    │   ├── user_profile.npy
    │   ├── yelp.att.analysis
    │   ├── yelp.interaction.graph
    │   ├── yelp.social.graph
    │   ├── yelp.test.rating.712
    │   ├── yelp.train.rating.712
    │   └── yelp.val.rating.712
    ├── yelp.ipynb


├── log  # saved log file
│   ├── wxt.0.0.6023.0.35225.model

Dataset

FWD dataset (i.e., wxt data) can be downloaded from Google Drive and BaiduYun (提取码:i6qy)

Reproducing results in the paper

Load the saved models in log/ dir.

Training

python trainHeteInf.py  --help

Reference

@inproceedings{Yuanfu2020SIAN,
  title={Social Influence Attentive Neural Network for Friend-Enhanced Recommendation},
  author={Yuanfu Lu, Ruobing Xie, Chuan Shi, Yuan Fang, Wei Zhang, Xu Zhang, Leyu Lin.}
  booktitle={Proceedings of ECML-PKDD},
  year={2020}
}

sian's People

Contributors

rootlu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.