Crime data simulating toolkit
The crime_sim_toolkit is a python package that originated from a joint Alan Turing Institute and Leeds Institute of Data Analytics project formulated by Dr. Dan Birks at the University of Leeds. It focuses on generating simulations of crime demand, using alternate methodologies, that can then be used as an input into an agent based model of police supply.
The toolkit was envisioned to have three main strategies for data simulation:
- a simple poisson sampler based on past data
- a decision tree using a wide range of predictor variables (TODO)
- a microsimulation using transition probabilities
The data_manipulation folder contains notebooks highlighting how some data sources have been constructed.
Installation
Install via Python package index
This package is now available via PyPi.
pip install --user crime_sim_toolkit
Install from sources
You can also install this package from source by cloning this repository, navigating into the crime_sim_toolkit
directory and running the following.
python setup.py install --user
Wiki
Find out how to get started using the crime_sim_toolkit via our Wiki
License
Notes on datafiles
The census_2011_population_hh.csv file is derived from ONS data. Taking data from sheet LSOA and using row 12 as the header row and keeping only rows below with data.
TODO
- Build method for using Police data API
- Decision tree implementation
Metadata
Release files for crime-sim-toolkit 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crime_sim_toolkit-1.5.0.tar.gz | 6.7 MB | Without provenance | Details for crime_sim_toolkit-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crime_sim_toolkit-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for crime_sim_toolkit-1.5.0-py3-none-any.whl |
Total release size: 13.6 MB
Release files / crime_sim_toolkit-1.5.0.tar.gz
| Download URL | crime_sim_toolkit-1.5.0.tar.gz |
|---|---|
| Size | 6.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea778aaff9b2eeec33c7724f52f469bd03091ff98d0be13e5f5655109b4b3c22
|
|
BLAKE2b-256 checksum How to use checksums |
a39d69ac29210130bc23365ef1b8628bc7df897a740503733438bba42c7794dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Release files / crime_sim_toolkit-1.5.0-py3-none-any.whl
| Download URL | crime_sim_toolkit-1.5.0-py3-none-any.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d56d6ee28eb7bbb65d8e36f211413108620df221ce0c838fefb25013f475001c
|
|
BLAKE2b-256 checksum How to use checksums |
aa4b8e1d63a25d586c096f5089ec81fae05427f6d20c43fda97d112cd5c3dcfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Security for crime-sim-toolkit 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.