Skip to content
/ TSCI Public

TSCI (Trajectory-based Social Circle Inference)

Notifications You must be signed in to change notification settings

gcooq/TSCI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSCI (Trajectory-based Social Circle Inference)

This is the implementation of the deep learning based TSCI model: DeepTSCI.

Environment

  • python >= 2.7
  • Tensorflow 1.0 or ++

Trajectory splitting and POI embedding

  • To capture mobility patterns of trajectories, We first split each trajectory into sub-trajectories based on the fixed time interval (see the paper for the detailed explanation).
  • Next, we embed POIs into low-dimensional vectors using the common method: wordv2vec.

Dataset

We use four different Location-based Social Network data as follows.

Usage

Using Gowalla data as the example here, similarly to other datasets.
To run LSTM-based DeepTSCI, python GW_LSTM.py/GW_BLSTM.py. The outcome including model and results will be in the folder of out_data.
To run VAE-based DeepTSCI, run the following commands (pre-training and training):

  • python GW_VAE.py
  • python GW_VAE_S.py

Reference

Hope such an implementation could help you on your projects. Any comments and feedback are appreciated.

About

TSCI (Trajectory-based Social Circle Inference)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages