This repository is a simple realisation of mathematical model of infectious disease Covid-19.
Main idea of model is solving differential equations: The SIR model without vital dynamics
Source of data : github repository
Competition : ODS.ai
Clone repository in folder on your system.
git clone https://github.com/lasados/Covid19.git
Open repository.
Install requirements with pip.
pip install -r pip-requirements.txt
import sys
sys.path.append('../')
from models.covidprocess import DataCovid
from models.linear import NaiveLinearModel
from models.compart import SIR
data = DataCovid().read()
linear_model = NaiveLinearModel(data)
linear_model.plot(start_fit=60)
model = SIR(data)
model.plot()
See more details in docs of modules here...
See also example here...