Giter Site home page Giter Site logo

mkr-recommendation's Introduction

mkr-recommendation

MKR is a Multi-task learning approach for Knowledge graph enhanced Recommendation. MKR consists of two parts: the recommender system (RS) module and the knowledge graph embedding (KGE) module. The two modules are bridged by cross&compress units, which can automatically learn high-order interactions of item and entity features and transfer knowledge between the two tasks. framework

Usage

For movie:

      python preprocess.py -d movie
      python main.py -dataset movie
      python predict_test.py -d movie  # Testing the .pd model

For book:

      python preprocess.py -d book
      python main.py -dataset book
      python predict_test.py -d book  # Testing the .pd model

For music:

      python preprocess.py -d music
      python main.py -dataset music
      python predict_test.py -d music  # Testing the .pd model

File structure

  • model/

    • movie/, book/, music/

      • restore/: model save recovery save/restore method, use it to restore model weights

      • result/: save the .pd model, deploy model using tensorflow serving

      • vocab/: save the embedding, in order to transfer weight, use it for iterative training if new users or new movie/music/book join

  • data/

    • book/
      • BX-Book-Ratings.csv: raw rating file of Book-Crossing dataset
      • item_index2entity_id.txt: the mapping from item indices in the raw rating file to entity IDs in the KG
      • kg.txt: knowledge graph file
    • movie/
      • item_index2entity_id.txt: the mapping from item indices in the raw rating file to entity IDs in the KG
      • kg.txt: knowledge graph file
      • ratrings.dat: raw rating file of MovieLens-1M
    • music/
      • item_index2entity_id.txt: the mapping from item indices in the raw rating file to entity IDs in the KG
      • kg.txt: knowledge graph file
      • user_artists.dat: raw rating file of Last.FM

Reference

hwwang55/MKR

Multi-Task Feature Learning for Knowledge Graph Enhanced Recommendation. In Proceedings of The 2019 Web Conference (WWW 2019)

mkr-recommendation's People

Contributors

demomagic avatar

Watchers

James Cloos 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.