GithubHelp home page GithubHelp logo

rpf's Introduction

Recurrent Poisson Factorization (RPF)

Build Status License

RPF is a temporal recommender system which is able to recommend the right item to the right user at the right time by utilizing the recurring temporal patterns in user-item engagement. The repository contains the implementation of different variants of RPF, i.e. Hierarchical RPF, Social RPF, Dynamic RPF, Dynamic Social RPF.

Prerequisites

  • Matlab version R2014a or later

Features

  • A coherent generative model for user-item interaction over time

  • The Social RPF model is able to infer the user interests on different items using her social relations.

  • Dynamic RPF considers the variable interest of user over time

  • Hierarchical RPF is able to consider the diversity of users interests and items popularity using a hierarchical structure.

  • A fast variational algorithm for inference on the proposed time-dependent model.

Data

The input format for the events is as follows:

unixTime userId    itemId

The events should be sorted in an increasing order of time. The userId and itemIds are sequential Integer numbers starting from 1. The name of this file should be datasetName.tsv .

Social Methods such as SRPF and DSRPF takes an extra input file which contains the adjacency list among the users. The name of this file should be datasetName_adjList.txt. Each line of this file starts with id of a user and then the number of users that she follows and then the list of users that she follows:

userId1   N user_1 user_2 ... user_N

The LastFM dataset which is used in the RPF paper is in the Dataset folder as a sample.

Running The Code

In order to run each of the HRPF, DRPF, SRPF and DSRPF

  • Go to the methods folder

  • Set the Dataset in the "run" Script

  • Run the run script

The results will be saved under the "Results" folder.

Citation

In case of using the code, please cite the following paper:

Hosseini, Seyed Abbas, et al. "Recurrent Poisson Factorization for Temporal Recommendation." arXiv preprint arXiv:1703.01442 (2017).

rpf's People

Contributors

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