Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Estimate flows of people from snapshots using the method of [Akagi2018].

There are two parts to this package

  • a fake data generator

  • an estimator

A couple IPython notebooks are included as demonstrations. One of these generates fake data and attempts to recover the underlying parameters. It is most useful for demonstration and testing.

Another is designed to run on real world data. It requires the user to supply additional data: counts of people in New Zealand SA2 regions and properties of those regions. The later information is available from StatsNZ:

We have assumed that the centroid-to-centroid distance separating regions is an appropriate metric. In principle, the user can specify an arbitrary distance measure on the space, allowing distances to be set by actual driving time, non-local travel via airports, or even asymmetry during commutes.

There are still some rough edges and there may be more corner cases to be taken care of.

Installation

A conda environment specification is included. This environment has been testing on Linux and OS X.

conda env create -f environment.yml
conda activate movement
pip install -e .
[Akagi2018]
  1. Akagi, T. Nishimura, T. Kurashima, and H. Toda, “A Fast and Accurate Method for Estimating People Flow from Spatiotemporal Population Data,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, Stockholm, Sweden, Jul. 2018, pp. 3293–3300, doi: 10.24963/ijcai.2018/457.

Metadata

Release files for flowstock 0.0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flowstock 0.0.1.dev0
File Size Uploaded
flowstock-0.0.1.dev0.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flowstock 0.0.1.dev0
File Interpreter ABI Platform
flowstock-0.0.1.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 26.4 kB

Release files / flowstock-0.0.1.dev0.tar.gz

Download URL flowstock-0.0.1.dev0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
77286bbd0ea6fd48c016e108701a58109ee8c7961538c236590e7c221983473a
BLAKE2b-256 checksum
How to use checksums
cfe6a07d3d2c34768ec57c4a0cecc2deca2417899e716525c0b3738f8a038e4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / flowstock-0.0.1.dev0-py3-none-any.whl

Download URL flowstock-0.0.1.dev0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a22f6380d12e574b4965f351462d05750254470beda3ecb5ee118fb626c2c978
BLAKE2b-256 checksum
How to use checksums
2ff15352ea4682cb42b23e646999edff9a03e8f4aab279ad1e83e5ba9146d690
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.1.dev0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page