Skip to content

Repository of compartmental disease models (toy models as well as available literature) and documentation of parameter fitting methods for these models.

Notifications You must be signed in to change notification settings

dsih-artpark/infectious-disease-models

Repository files navigation

Generalized Compartmental Modeling Framework

Python License Docs

A flexible Python framework for simulating, fitting, and visualizing epidemiological compartmental models such as SIR, SEIR, SIS, and custom user-defined models.


Features

  • Define models entirely via a YAML configuration file
  • Supports ODE-based simulations for arbitrary compartment structures
  • Built-in noise injection and subset sampling for fitting
  • Parameter estimation with:
    • Nelder-Mead
    • BFGS
    • L-BFGS-B
    • MCMC (via emcee)
  • Automatic plot generation for:
    • Clean simulations
    • Noisy data
    • Model fit comparisons
    • Parameter estimation results
    • MCMC posterior distributions

Installation

The source code is available on GitHub at:
https://github.com/dsih-artpark/infectious-disease-models

git clone https://github.com/dsih-artpark/infectious-disease-models.git
cd infectious-disease-models
uv pip install -r requirements.txt

About

Repository of compartmental disease models (toy models as well as available literature) and documentation of parameter fitting methods for these models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages