Simulation of early COVID-19 using SIR model and variants (SEIR ...).

Overview

COVID-19-simulation

Simulation of early COVID-19 using SIR model and variants (SEIR ...). Made by the Laboratory of Sustainable Life Assessment (GYRO) of the Federal Technologycal University - Parana (UTFPR-ct) in the scope of the project GYRO4Life

Running the simulation

The code runs based on a csv with the same structure of nc85.csv or oa85.csv files which has a time series of confirmed cases and deaths and metadata information about the region being characterized on the line. Both cases and deaths have to be given for the simulation.

The main code is simulação.py, which receives a couple of arguments:

  • 1: region code (for the csv being used). In case the argument is empty ("-"), it will run for all lines of the csv [ex: -28]
  • 2: Name of the csv file with confirmed cases (omit the '.csv') [ex: nc85.csv -> -nc85]
  • 2: Name of the csv file with confirmed deaths (omit the '.csv') [ex: oa85.csv -> -oa85]
  • 3: Fitting method [-0: basinhopp, -1: differential evolution [default], -2: powell, -3: cobyla] [ex: -1]
  • 4: Boolean and quantity of opening and closure regimes for the simulation for confirmed cases (works as a contingency method reducing the probability of infection). '-0-0' ignores this factor for a simulation without contingency methods. If a quantity is given on the second argument, the boolean argument must be 1 [ex: '-1-1']
  • 5: Boolean and quantity of opening and closure regimes for the simulation for confirmed deaths (works as a contingency method reducing the probability of infection). '-0-0' ignores this factor for a simulation without contingency methods. If a quantity is given on the second argument, the boolean argument must be 1 [ex: '-1-1']
  • 6: Type of simulation [-n: simulation of one location (one csv line), -s: simulation of all csv locations, -b: bootstrap of one location [has uncertainty], -sl: simulation of a location with sensibility analysis] [ex: -n]
  • 7: Simulation period in days [ex: -200]
  • 8: number of days for validation [ex: -5]
  • 9: Subtype of simulation [-mod: hospitalization simulation, -std: SEIR simulation with asymptomatic and deaths]
  • 10: Run tests and additional graphics [-0: no, -1: yes]

Example call for a SEIR simulation with bootstrap using cases and deaths in Brazil. The simulation is done for 200 days and with a validation of 5 days.

python simulacao.py -28 -nc85 -oa85 -1 -1-2-0-0 -b -200 -5 -str -0
Owner
José Paulo Pereira das Dores Savioli
José Paulo Pereira das Dores Savioli
Simulation of early COVID-19 using SIR model and variants (SEIR ...).

COVID-19-simulation Simulation of early COVID-19 using SIR model and variants (SEIR ...). Made by the Laboratory of Sustainable Life Assessment (GYRO)

José Paulo Pereira das Dores Savioli 1 Nov 17, 2021
A Software Framework for Neuromorphic Computing

A Software Framework for Neuromorphic Computing

Lava 338 Dec 26, 2022
Machine Learning for RC Cars

Suiron Machine Learning for RC Cars Prediction visualization (green = actual, blue = prediction) Click the video below to see it in action! Dependenci

Kendrick Tan 706 Jan 02, 2023
Machine Learning Techniques using python.

👋 Hi, I’m Fahad from TEXAS TECH. 👀 I’m interested in Optimization / Machine Learning/ Statistics 🌱 I’m currently learning Machine Learning and Stat

FAHAD MOSTAFA 1 Jan 19, 2022
Python library for multilinear algebra and tensor factorizations

scikit-tensor is a Python module for multilinear algebra and tensor factorizations

Maximilian Nickel 394 Dec 09, 2022
Extended Isolation Forest for Anomaly Detection

Table of contents Extended Isolation Forest Summary Motivation Isolation Forest Extension The Code Installation Requirements Use Citation Releases Ext

Sahand Hariri 377 Dec 18, 2022
A naive Bayes model for cancer classification using a set of documents

Naivebayes text classifcation model for cancer and noncancer documents Author: Alex King Purpose Requirements/files included How to use 1. Purpose The

Alex W King 1 Nov 24, 2021
Dragonfly is an open source python library for scalable Bayesian optimisation.

Dragonfly is an open source python library for scalable Bayesian optimisation. Bayesian optimisation is used for optimising black-box functions whose

744 Jan 02, 2023
Uplift modeling and causal inference with machine learning algorithms

Disclaimer This project is stable and being incubated for long-term support. It may contain new experimental code, for which APIs are subject to chang

Uber Open Source 3.7k Jan 07, 2023
CobraML: Completely Customizable A python ML library designed to give the end user full control

CobraML: Completely Customizable What is it? CobraML is a python library built on both numpy and numba. Unlike other ML libraries CobraML gives the us

Sriram Govindan 14 Dec 19, 2021
scikit-learn models hyperparameters tuning and feature selection, using evolutionary algorithms.

Sklearn-genetic-opt scikit-learn models hyperparameters tuning and feature selection, using evolutionary algorithms. This is meant to be an alternativ

Rodrigo Arenas 180 Dec 20, 2022
A basic Ray Tracer that exploits numpy arrays and functions to work fast.

Python-Fast-Raytracer A basic Ray Tracer that exploits numpy arrays and functions to work fast. The code is written keeping as much readability as pos

Rafael de la Fuente 393 Dec 27, 2022
Predicting diabetes over a five year period using logistic regression and the Pima First-Nation dataset

Diabetes This script uses the Pima First Nations dataset to create a model to predict whether or not an individual will develop Diabetes Mellitus Type

1 Mar 28, 2022
Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and Python functions.

Mars is a tensor-based unified framework for large-scale data computation which scales numpy, pandas, scikit-learn and many other libraries. Documenta

2.5k Jan 07, 2023
Real-time stream processing for python

Streamz Streamz helps you build pipelines to manage continuous streams of data. It is simple to use in simple cases, but also supports complex pipelin

Python Streamz 1.1k Dec 28, 2022
Generate music from midi files using BPE and markov model

Generate music from midi files using BPE and markov model

Aditya Khadilkar 37 Oct 24, 2022
Machine Learning Study 혼자 해보기

Machine Learning Study 혼자 해보기 기여자 (Contributors) ✨ Teddy Lee 🏠 HongJaeKwon 🏠 Seungwoo Han 🏠 Tae Heon Kim 🏠 Steve Kwon 🏠 SW Song 🏠 K1A2 🏠 Wooil

Teddy Lee 1.7k Jan 01, 2023
Lseng-iseng eksplor Machine Learning dengan menggunakan library Scikit-Learn

Kalo dengar istilah ML, biasanya rada ambigu. Soalnya punya beberapa kepanjangan, seperti Mobile Legend, Makan Lontong, Ma**ng L*v* dan lain-lain. Tapi pada repo ini membahas Machine Learning :)

Alfiyanto Kondolele 1 Apr 06, 2022
Time series forecasting with PyTorch

Our article on Towards Data Science introduces the package and provides background information. Pytorch Forecasting aims to ease state-of-the-art time

Jan Beitner 2.5k Jan 02, 2023
Fit interpretable models. Explain blackbox machine learning.

InterpretML - Alpha Release In the beginning machines learned in darkness, and data scientists struggled in the void to explain them. Let there be lig

InterpretML 5.2k Jan 09, 2023