Skip to content

Contrasting social and non-social sources of predictability in human mobility

License

Notifications You must be signed in to change notification settings

Magica-Chen/co-locationship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Citation Badge GitHub release (latest by date) GitHub last commit DOI GitHub Repo stars Twitter

co-locationship

Leveraging information transfer in social and co-location networks to improve predictability in human mobility

The code was tested on Python 3.6.

Install (via pypi version)

pip install colocationship

Install (via GitHub)

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

Dataset

All processed datasets (Weeplaces, BrightKite, Gowalla) we used in this repo can be found in Google Drive.

Usage

The example please refers to example/example_weeplaces.ipynb.

Citation

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}
}