Skip to main content

A light package for build and analyse co-locationship for paper: Contrasting social and non-social sources of predictability in human mobility

Project description

GitHub 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colocationship-2.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colocationship-2.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file colocationship-2.0.tar.gz.

File metadata

  • Download URL: colocationship-2.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.24.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.42.1 importlib-metadata/4.11.3 keyring/21.1.0 rfc3986/1.4.0 colorama/0.4.3 CPython/3.7.6

File hashes

Hashes for colocationship-2.0.tar.gz
Algorithm Hash digest
SHA256 e55749b9a4dec33a2672eff7b122f7a1f42195b8dc1b8e985ad1ec04702ad714
MD5 40eb4b9d46d3f28523acd0e087ad45d6
BLAKE2b-256 139da30f7f8fba36a92faf7f319ae11062a8b1ce4927ae62ab7a59a2285dbe94

See more details on using hashes here.

File details

Details for the file colocationship-2.0-py3-none-any.whl.

File metadata

  • Download URL: colocationship-2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.24.0 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.42.1 importlib-metadata/4.11.3 keyring/21.1.0 rfc3986/1.4.0 colorama/0.4.3 CPython/3.7.6

File hashes

Hashes for colocationship-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a922683b3d124327d5161f781a54deffaf8c3f4324357e7bc77b421019264a
MD5 0419f2a7cc46de5900d85292cd0d7fc5
BLAKE2b-256 1d0a3ef9e18cd32250c5c52253f68d9e30289b1b9ed4be6b5a8d5f3bd48eca11

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page