Giter Club home page Giter Club logo

covid-vaccine-dynamics's Introduction

Causal Covid

Installation

Clone with

git clone [email protected]:Priesemann-Group/causal_covid.git

Notes:

You need python>3.8.

Before you can use the code and rerun the analyses you have to:

  • init the submodules:

     #Init
     git submodule init
     # Update package manual (inside covid19_inference folder)
     cd covid19_inference
     git pull origin master
  • install the requirements with

     pip install -r requirments.txt

Installation as package

Install

pip install git+ssh://[email protected]/Priesemann-Group/causal_covid.git

To run a scenario, open a interactive window and run:

from causal_covid import run_scenario
run_scenario.single_dimensional("data/2022-02-09_16-39-19_young_to_old_cap/vaccination_policy/U_2.npy", "data/2022-02-09_16-39-19_young_to_old_cap/vaccination_policy/u_3.npy")

Getting started

Scenario calculation

You can use one of the inferred models (saved in ./data/traces/) to investigate what would happen in a counterfactual scenario with an alternative vaccination policy. Go into ./scripts/ and run calculate_scenario.py (./scripts has to be the current working directory). In calculate_scenario.py the path for the U2 and u3 matrices of the alternative scenario have to be set.

Inference

To infer the base reproduction number that is necessary for the scenario calculations afterwards, go into ./scripts/ and run infer_single_age_group.py -i 1 (for the single dimensional models). Parameters are set inside the script.

Filepath setting

The case data, population data, waning immunity and vaccination used by the inference is centrally set in the .\scripts\params.py file.

covid-vaccine-dynamics's People

Contributors

jdehning avatar sibauer avatar

Stargazers

 avatar

Watchers

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