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

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