Skip to main content

Library to conduct experiments in population dynamics.

Project description

Population dynamics

License PyPI Python Version codecov

Library to conduct experiements on population dynamics.

Lotka-Volterra predator-prey system

Installation

  1. To generate required log and results directories, run
bash init.sh
  1. Create conda environment
conda env create -f environment.yml
  1. Activate the environment
conda activate population-dynamics
  1. Install causal as a package within the environment
python setup.py develop

Running the Lotka-Volterra simulation

  • The Lotka-Volterra simulator class exists in repo/causal/base/lotka_volterra.py.

  • The Lotka-Volterra simulation parameters are fetched from repo/causal/config.py. You can edit the config.py file directly to play around with the parameter values.

  • You can run the simulator directly from terminal by running

python causal/base/lotka_volterra.py
  • The simulation statistics will be saved in the repo/results directory.

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 causal-inference-population-dynamics-0.0.2.dev13.tar.gz.

File metadata

  • Download URL: causal-inference-population-dynamics-0.0.2.dev13.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for causal-inference-population-dynamics-0.0.2.dev13.tar.gz
Algorithm Hash digest
SHA256 6389a810967e81513601244cdaedbd439eed3a6dc1fe3cb143dca07b4ebd636a
MD5 8ae06bb00da69cf4d785bbea79344ade
BLAKE2b-256 68cb69f350197eadc7042699be6f54d1c6811c09636df67b0588d8f5720d3fba

See more details on using hashes here.

File details

Details for the file causal_inference_population_dynamics-0.0.2.dev13-py3-none-any.whl.

File metadata

File hashes

Hashes for causal_inference_population_dynamics-0.0.2.dev13-py3-none-any.whl
Algorithm Hash digest
SHA256 af75683dc100f747d0a5e484a721ac9184b0360dc8fabce73ca0cab0438feda7
MD5 c00435735daf1a361e60a42126c1283f
BLAKE2b-256 fbae6519442a2090d87a9c60ddb62f04fce9ddeebc3d7baf5ecdf3308440a62b

See more details on using hashes here.

Supported by

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