Giter Club home page Giter Club logo

transcf's Introduction

Collaborative Translational Metric Learning (TransCF)

Overview

Recently, matrix factorization-based recommendation methods have been criticized for the problem raised by the triangle inequality violation. Although several metric learning-based approaches have been proposed to overcome this issue, existing approaches typically project each user to a single point in the metric space, and thus do not suffice to properly model the intensity and the heterogeneity of user-item relationships of implicit feedback. In this paper, we propose TransCF to discover such latent user-item relationships embodied in implicit user-item interactions. Inspired by the translation mechanism popularized by knowledge graph embedding, we construct user-item specific translation vectors by employing the neighborhood information of users and items, and translate each user towards items regarding the user's relationships with the items.

Paper

  • Translational Collaborative Metric Learning (ICDM 2018)

Requirements

How to Run

git clone https://github.com/pcy1302/TransCF.git
cd TransCF
python main.py --recommender TransCF --dataset delicious --lRate 0.005 --mode Val

Configuration

You can evaluate TransCF with different settings. Below is a description of all the configurable parameters:

  • --recommender : 'Choose a recommender.'
  • --dataset : 'Choose a dataset.' (delicious, bookcrossing, ciao, cellphone)
  • --embedding_dim : 'Number of embedding dimensions.'
  • --lRate : 'Learning rate.'
  • --margin' : 'Margin.'
  • --reg1' : 'Distance regularizer.'
  • --reg2' : 'Neighborhood regularizer.'
  • --mode : 'Validation or Test' (Val, Test)
  • --numEpoch : 'Number of epochs.'
  • --num_negatives' : 'Number of negative samples.
  • --batch_size' : 'Batch size.'
  • --rand_seed' : 'Random seed.'
  • --cuda : 'Speficy GPU number'
  • --early_stop : 'Early stop iteration.'

Reproducing the qualitative experiments

transcf's People

Contributors

pcy1302 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.