semvec/pypi-packages huggingface dataset:
colocationship 2.0
A light package for build and analyse co-locationship for paper: Contrasting social and non-social sources of predictability in human mobility
Requires Python: >=3.6

![GitHub](https://img.shields.io/github/license/Magica-Chen/co-locationship)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/Magica-Chen/co-locationship)
![GitHub last commit](https://img.shields.io/github/last-commit/Magica-Chen/co-locationship)
[![DOI](https://zenodo.org/badge/309197285.svg)](https://zenodo.org/badge/latestdoi/309197285)
![GitHub Repo stars](https://img.shields.io/github/stars/Magica-Chen/gptp_multi_output?style=social)
![Twitter](https://img.shields.io/twitter/follow/MagicaChen?style=social)

# 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:

```python
import colocationship as cl
```

## Dataset

All processed datasets (Weeplaces, BrightKite, Gowalla) we used in this repo can be found in [Google Drive](https://drive.google.com/drive/folders/1C71Atf4x7eTAEazAPehih5_zkBqqfX4M?usp=sharing).

## Usage

The example please refers to `example/example_weeplaces.ipynb`.