Coder Social home page Coder Social logo

apoir's Introduction

Adversarial Point-of-Interest Recommendation (APOIR)

This is the python implementation -- a POI recommendation model using adversarial training.


Requirements

  • python2.7
  • tensorflow >= 1.3.0
  • numpy >= 1.14.0

Datasets

Datasets         Users   POIs Check-ins
Gowalla    18,737 32,510 1,278,274
Foursquare    24,941 28,593 1,196,248
Yelp 30,887 18,995 860,888

For the Gowalla dataset, we filter out those users with fewer than 15 check-in POIs and those POIs with fewer than 10 visitors. For Foursquare and Yelp, we discard those users with fewer than 10 check-in POIs and those POIs with fewer than 10 visitors. We partition each dataset into training set and test set. For each user, we use the earlier 75% check-ins as the training data and the most recent 25% check-ins as the test data. All datasets are very sparse (the frequency of most POIs being visited is extremely low).


Baseline


Usage

  • To run APOIR, please first clone the code to your python IDE (eg:Pycharm), then run the command: python APOIR.py.

  • To customize the code,

    • you can change the Embedding_size in line 9
    • You need to set your data set folder in line 14
    • Then change the user number and POI number to fit the given data set in line 10 and line 11
    • You can also set the learning_rate_value to be a different value in line 17
  • You can use your own data sets in the source code

apoir's People

Contributors

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