Git Product home page Git Product logo

graphsw's Introduction

GraphSW

This repository is the implementation of GraphSW (arXiv):

Chang-You Tai, Meng-Ru Wu, Yun-Wei Chu, Shao-Yu Chu, and Lun-Wei Ku.2018. GraphSW: a training protocol based on stage-wise training for GNN-based Recommender Model.

Introduction

We propose GraphSW, a strategy based on stage-wise training framework which would only access to a subset of the entities in KG in everystage. During the following stages, the learned embedding from previous stages is provided to the network in the next stage and the model can learn the information gradually from the KG. image image

Citation

If you want to use our codes and datasets in your research, please cite:

@inproceedings{Tai2019GraphSWAT,
 title={GraphSW: a training protocol based on stage-wise training for GNN-based Recommender Model},
 author={Chang-You Tai and Meng-Ru Wu and Yun-Wei Chu and Shao-Yu Chu},
 year={2019}
}

Files in the folder

  • data/: datasets
    • Book-Crossing/
    • MovieLens-1M/
    • amazon-book_20core/
    • last-fm_50core/
    • music/
    • yelp2018_20core/
  • src/: implementation of GraphSW.
  • output/: storing log files
  • misc/: storing users being evaluating, popular items, and sharing embeddings.

Environment Requirement

The code has been tested running under Python 3.6.5. The required packages are as follows:

  • tensorflow == 1.12.0
  • numpy == 1.15.4
  • scipy == 1.1.0
  • sklearn == 0.20.0

Build Environment(conda)

$ cd graph-stage
$ conda deactivate
$ conda create -f requirements.yml
$ conda activate graph-stage

Example to Run the Codes

  • RippleNet
    $ cd src/RippleNet/
    $ bash RippleNet_{dataset}.sh # e.g. music
    
  • KGCN
    $ cd src/KGCN/
    $ bash main_{dataset}.sh # e.g. music
    

graphsw's People

Contributors

johnnyjana730 avatar mengruwu 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.