GithubHelp home page GithubHelp logo

gshengd / gemodel-cikm16-reproduce Goto Github PK

View Code? Open in Web Editor NEW

This project forked from g101418/gemodel-cikm16-reproduce

0.0 1.0 0.0 318 KB

本仓库是对CIKM16文章(Learning Graph-based POI Embedding for Location-based Recommendation)的复现

C++ 64.81% Python 35.19%

gemodel-cikm16-reproduce's Introduction

GEmodel-CIKM16--

本仓库是对CIKM16文章(Learning Graph-based POI Embedding for Location-based Recommendation)的复现.


使用办法

  1. 下载checkin数据(https://www.dropbox.com/sh/uhye7orwjz1fn9l/AADDhBogROVDA9jsivguIguKa?dl=0)
  2. 运行model_in_gen.py,其中:
    • train_frac设置训练集占比
    • delta_t设置时间间隔,只需修改第一个整数即可
  3. 运行GEmodel c++程序,生成嵌入向量
  4. 运行topNscore.py,其中:
    • N设置topN
    • sample_num设置本次测试样本数量
    • delta_time_weight设置用户向量生成权重
    • 在该代码中,应当先运行dicts_gen()函数以产生字典(不需要再运行get_dicts()),第二次运行程序时可以不调用dicts_gen()。user_vec_gen()受限于sample_num,每次并不一致,如果需要重新抽样,请重新运行该函数,否则可以使用get_user_vec()读取用户向量

PS: 原数据集中,有一行的POI名与众不同,由6个(?)数字组成,可能会造成影响,请注意。


仓库中cpp程序来自Dr. Hongzhi Yin主页(https://sites.google.com/site/dbhongzhi/ ),我只修改了部分bug。论文引用为:

Xie M, Yin H, Wang H, et al. Learning graph-based poi embedding for location-based recommendation[C]//Proceedings of the 25th ACM International on Conference on Information and Knowledge Management. ACM, 2016: 15-24.

gemodel-cikm16-reproduce's People

Contributors

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