Code Monkey home page Code Monkey logo

metacast's Introduction

MetaCast

A package for broadCASTing epidemiological and ecological models over META-populations.

Summary

MetaCast is a python package for broadcasting epidemiological and ecological ODE based models over metapopulations (structured populations). Users first define a function describing the subpopulation model. MetaCast's users then define the dimensions of metapopulations that this subpopulation is broadcast over. These dimensions can be flexibly defined allowing for multiple dimensions and migration (flows) of populations between subpopulations. In addition to the metapopulation suite MetaCast has several features. A multinomial seeder allows users to randomly select infected stages to place an infected population in based on the occupancy time of infected states. MetaCast's event queue suite can handle discrete events within simulations, such as movement of populations between compartments and changes in parameter values. Sensitivity analysis can be done in MetaCast using parallelisable Latin Hypercube Sampling and Partial Rank Correlation Coefficient functions. All of this makes MetaCast an ideal package not only for modelling metapopulations but for wider scenario analysis.

Installation

Requirements

Python 3.10 and pip. Package requirements:

  • numpy >= 1.26.3
  • pandas >= 2.1.4
  • scipy >= 1.11.4
  • pingouin >= 0.5.4
  • tqdm >= 4.66.1
  • dask >= 2024.2.1
  • distributed >= 2024.2.1

For running demonstration jupyter notebooks

  • bokeh >= 3.3.4
  • seaborn >= 0.13.2
  • jupyter >= 1.0.0

Installing via pip

Note this should also install required packages.

pip install metacast

Usage

See jupyter notebooks in demonstration directory of the projects GitGub repository: https://github.com/m-d-grunnill/MetaCast/tree/main/demonstrations

Documentation

https://metacast.readthedocs.io/en/latest/index.html

Notes

Currently, MetaCast's lhs_and_prcc function only support latin hypercube sampling with uniform distributions.

Contributing

If you wish to contribute to this project please see the CONTRIBUTING.md file.

metacast's People

Contributors

m-d-grunnill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.