CATHI
Context-aware Trajectory Embedding and Human Mobility Inference
Install / Use
/learn @CATHI2018/CATHIREADME
Datasets
There are three datasets: Flicker, Geolife and Foursquare.
The format of dataset are as follows:
poi-Edin.csv: POI data in Edinburgh.
- poiID: POI identity
- poiCat: POI category
- poiLon: POI longitude
- poiLat: POI latitude
traj-Edin.csv: Trajectories in Edinburgh.
- userID: User identity
- trajID: Trajectory identity
- poiID: POI identity
- startTime: Timestamp that the user started to visit this POI
- endTime: Timestamp that the user left this POI
- #photo: Number of photos taken by the user at this POI
- trajLen: Number of POIs visited in this trajectory by the user
- poiDuration: The visit duration (seconds) at this POI by the user
You can click https://sites.google.com/site/limkwanhui/datacode#ijcai15 to download the original dataset of Flickr.
Usage
To generate the results from scratch, please follow these five steps:
- Creat the trajectory by excute
createTraj.py. - Use
bash setup.shto create the directories to store results locally, and copy the training and testing data with proper naming. - Run
train.pyto train the model. You will get a ckpt file at path: /code/tf_data_traj/nn_models. - Sequentially run
Trajectory_Prediction.pyto predict the trajectory. The results are in /code/tf_data_traj/results. - Finally, you can calculate F1 and pairs-F1 by running
F1AndPairsF1.py.
Requirements
python: 2.7.12<br> Tensorflow-gpu: 1.0.0
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
