GithubHelp home page GithubHelp logo

damingondiwa / bayesianode-priorimpactassessment Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 13.6 MB

This repository has code for the paper Bayesian prior impact assessment for dynamical systems described by ordinary differential equations

License: GNU Lesser General Public License v3.0

Python 100.00%
bayesian dynamic-systems prior-impact-assessment jax ordinary-differential-equations tensorflow-probability wasserstein-distance

bayesianode-priorimpactassessment's Introduction

Wasserstein distance prior impact assessment for ODE models

Introduction

This repository contains supporting code for the pre-print:

Mingo, D. N., Hale, J. S. and Ley, C.,: Bayesian prior impact assessment for dynamical systems described by ordinary differential equations.

TODO: Add link to preprint

The code is archived at:

Mingo, D. N. and Hale, J. S.: Wasserstein distance prior impact assessment for ODE models, https://doi.org/10.5281/zenodo.11553775, 2024.

The code in this repository is licensed under the GNU Lesser General Public License version 3 or later, see COPYING and COPYING.LESSER.

Examples

Lotka-Volterra

Scripts to reproduce the results for the Lotka-Volterra example are contained in examples/lotka_volterra.

In order, run:

  1. wasser_exlot.py
  2. wasser_dist_prior.py
  3. wasser_dist_ex.py

The scripts lotka_priors_ppc.py and pairplot.py can be executed independently.

SEIR

Scripts to reproduce the results for the SEIR example are contained in examples/SEIR.

In order, run:

  1. All files in prior_samples/.
  2. run_seirpost.sh executes wasser_seir.py and saves the samples.
  3. wasser_seir.py
  4. wd_mar_ex.py

Prior samples (SEIR)

The subfolder examples/SEIR/prior_samples contains scripts for sampling from prior distributions. Running these scripts on an HPC is preferable as they take longer, or use the script sample_batches.py for batch sampling to reduce execution time.

Additional scripts

The script example_diagnostics.py demonstrates how to perform Geweke diagnostics to check for model convergence. The script requires uploading posterior samples and specifying the model (SEIR or Lotka-Volterra).

DOI

bayesianode-priorimpactassessment's People

Contributors

damingondiwa avatar jhale avatar

Watchers

 avatar  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.