Skip to main content

Library to conduct experiments in population dynamics.

Project description

Population dynamics

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.dev10.tar.gz.

File metadata

  • Download URL: causal-inference-population-dynamics-0.0.2.dev10.tar.gz
  • Upload date:
  • Size: 61.2 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.dev10.tar.gz
Algorithm Hash digest
SHA256 3c13be6de09fbe7eb0e5cc67658c547d06659ab782e0b80663a7e4e8a0022fa0
MD5 229914223f240afe7b36af6bb3a22e4e
BLAKE2b-256 1ca992b83d230b2dedd89459b7c33536dc9f91598d98bde0bfe7d9e928c0e9ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for causal_inference_population_dynamics-0.0.2.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 06eed749a63b992938bb9dc1df9303667fb020db10f7abcae7cbcf58f24fa0ed
MD5 33805adb44e6b9d7a03671bced83df86
BLAKE2b-256 a5141026cf8075d3e095f88d593b6f70eb12cce85ba50e85ef32109c8a311531

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