Randomly generate populations.
Project description
This package can be used to generate random populations based on (publicly availabled) aggregated data.
These populations can then for example be used for experimentation in the field of machine learning or simulation studies.
The simago package is available on PyPI, the source code on Github and the documentation on ReadTheDocs. The package is released under the GPLv3 licence and tested for Python 3.7 and up.
See the changes in the changelog.
Usage
The easiest way to get started, after installing the package with pip install simago, is to use the function generate_population() from simago.population. This function creates an instance of the PopulationClass object with the generated population Pandas DataFrame as the PopulationClass.population attribute.
The population DataFrame contains a row for every person and a column for each property. The values for these properties are randomly drawn from probability distributions defined by the supplied data. This is done by supplying a settings (YAML) file, a data (CSV) file and possibly a conditions (CSV) file. For more guidance see the example in the documentation.
How to contribute
If you would like to contribute to this project, please check out the contributing guidelines.
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
Built Distribution
File details
Details for the file simago-0.3.2.tar.gz
.
File metadata
- Download URL: simago-0.3.2.tar.gz
- Upload date:
- Size: 131.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ee7f86675acdbfe217035db64fb5d6660915faf89ab99ba6e19eb7c67d0d3c |
|
MD5 | 8d9de0f6c3e9ab96bb9cdeaa6566a196 |
|
BLAKE2b-256 | 272b7b4aa24ceb55ec5fab3356f8be97cc7bf914e931d863641b40b1557a00ed |
File details
Details for the file simago-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: simago-0.3.2-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69807bc901aa0444de931943ee09c656b4a5ae117a438dd765a1bda735174d3 |
|
MD5 | 6c73eb2ee52744817fc371217b682f63 |
|
BLAKE2b-256 | e7f2532dd70b6b2c2dc14fd5e6233d498d6dcd9f238205515324716f08bf1a61 |