GithubHelp home page GithubHelp logo

baoyinyuan / covid19dispersion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gerritgr/covid19dispersion

0.0 0.0 0.0 1.11 MB

Official implementation of "Why ODE models for COVID-19 fail: Heterogeneity shapes epidemic dynamics"

Python 100.00%

covid19dispersion's Introduction

Stochastic COVID-19 Simulation

Stochastic simulation of a simple COVID-19 model on Networks with individual infectiousness variations.

Copyright: 2021, Gerrit Großmann, Group of Modeling and Simulation at Saarland University

Version: 0.1 (Please note that this is proof-of-concept code in a very early development stage.)

Caveat lector: This is an academic model, do not use academic models as a basis for political decision-making.

Overview


Animation

Installation


The tool is based on Python3. Install the required dependencies using: With:

pip install -r requirements.txt

Example Usage


With

python simulation.py

Output


Two output folders are created: output_graphs/ and output_dynamics/.

output_graph


output_graphs/ contains example contact networks which are generated. Note that for each simulation run a new contact network is generated using a random graph model. Moreover, the folder contains summary statistics (degree distribution) and network visalizations (only for networks < 200 nodes).

output_dynamics


output_dynamics/ contains different files describing the stochastic dynamics of the system. Files with evolution in their name report the fraction of nodes in each compartment over time. The rvalues file reports for each infected node in each simulatino run: (1) when the node became infected, (2) number of secondary infections of that node. Visualization code is not provided.

covid19dispersion's People

Contributors

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