Leveraging information transfer in social and co-location networks to improve predictability in human mobility
The code was tested on Python 3.6.
pip install colocationship
git clone https://github.com/Magica-Chen/co-locationship.git
cd co-locationship
The dependencies package are shown in requirements.txt
, also, you can run
pip install -r requirements.txt
After installing all dependencies clone the repository and do (inside the top directory):
pip install .
This will install a copy of the code as a package. If you want to install a package that links to the cloned code, run
pip install --editable .
This makes changes to the source files in the cloned directory immediately available to everything that imports the package.
After installation, anywhere on the system you can then import the package:
import colocationship as cl
All processed datasets (Weeplaces, BrightKite, Gowalla) we used in this repo can be found in Google Drive.
The example please refers to example/example_weeplaces.ipynb
.
PLAIN
Chen, Z., Kelty, S., Evsukoff, A.G. et al. Contrasting social and non-social sources of predictability in human mobility. Nat Commun 13, 1922 (2022).
BIBTEX
@article{chen2022constrasting,
title={Contrasting social and non-social sources of predictability in human mobility},
author={Chen, Zexun and Kelty, Sean and Evsukoff, Alexandre G. and Welles, Brooke Foucault and Bagrow, James P and Menezes, Ronaldo and Ghoshal, Gourab},
journal={Nature communications},
volume={13},
number={1},
pages={1--9},
year={2022},
publisher={Nature Publishing Group}
}