Code Monkey home page Code Monkey logo

catdm's Introduction

CatDM

A Category-Aware Deep Model for Successive POI Recommendation on Sparse Check-in Data (WWW-2020)

Fuqiang Yu, Lizhen Cui, Wei Guo, Xudong Lu, Qingzhong Li, Hua Lu

Installation

Install Python 3.5.

Install tensorflow 1.12.2.

Data

We provide a processed NYC dataset for training/evaluation. If you need the complete NYC and TKY data set, please click the link below to download.

  • NYC: the Foursquare check-ins in New York

  • TKY: the Foursquare check-ins in Tokyo

Usage

1. Generate Candidates

To filter POIs and reduce the search space.

$ python train.py

To train and evaluate Encoder 1 and Filter, we split each dataset into a training set, a validation set and a test set, here. Encoder 1 and filtering layers form a reasonable filter capable of reducing search space, i.e., reducing the number of candidates from which recommended POIs are selected finally.

Note that the value of variable 'tf.flags.DEFINE_string' can be selected by train or test.

2. Rank POI

To sort the POIs in the candidate set.

$ python train_rankpoi.py

Note that the value of variable 'tf.flags.DEFINE_string' can be selected by train or test.

catdm's People

Contributors

fqyuu avatar

Stargazers

 avatar Chenglei Shen avatar d_jq avatar euphoria avatar Charles Li avatar David_Chen avatar  avatar  avatar

Watchers

 avatar

catdm's Issues

Missing file

Hello, I found that there is no NYC_FILTER_POI.txt file when I run the code, which resulted in an error report. How is this data generated and can you publish it? Thank you very much!

loss function

在第二步进行rank的时候,代码中模型的训练中的 loss 实际上并没有用到文章中提到的 P_{u}^{poi},也就是代码中的利用 window_state 计算出现在对 POI 的偏好。虽然代码里计算了 等式(23),但计算完并没有下一步的处理,没有加到 loss 中去更新参数,请问是我对代码的理解有问题吗?

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.