Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lucaangioloni/fit-covid19

Easy model to fit logistic curve to COVID19 data from Italy. Demo: https://fit-covid19.herokuapp.com
https://github.com/lucaangioloni/fit-covid19

contagi-giornalieri coronavirus covid-19 covid-virus covid19 demo forecasting italy logistic prediction python regression scikit-learn totale-contagi

Last synced: 1 day ago
JSON representation

Easy model to fit logistic curve to COVID19 data from Italy. Demo: https://fit-covid19.herokuapp.com

Awesome Lists containing this project

README

        

# fit-COVID19
Easy model to fit logistic curve to COVID19 data from Italy.

Data is taken from [this official repo](https://github.com/pcm-dpc/COVID-19)

Live demo: https://fit-covid19.herokuapp.com
(It could be slow because it is a free heroku app)

For single regions:
https://fit-covid19.herokuapp.com/regione/nome

(Ex. Toscana: https://fit-covid19.herokuapp.com/regione/Toscana)

## Predictions for Italy:
```bash
usage: fit.py [-h] [--img IMG] [--avg AVG] [--style STYLE]

Modello COVID-19 in Italia.

optional arguments:
-h, --help show this help message and exit
--img IMG y, save imgs - n do not save imgs
--avg AVG if > 1 draw plot of avg last --avg days.
--style STYLE [normal, cyberpunk] : normal, standard mpl - cyberpunk,
cyberpunk style
--old_pred OLD_PRED if True plot also the prediction curve from a week ago.
```

## Predictions for a region:
```bash
usage: regione_fit.py [-h] --regione REGIONE [--img IMG] [--avg AVG] [--style STYLE]

Modello COVID-19 per regione.

optional arguments:
-h, --help show this help message and exit
--regione REGIONE Nome regione su cui effettuare le predizioni.
--img IMG y, save imgs - n do not save imgs
--avg AVG if > 1 draw plot of avg last --avg days.
--style STYLE [normal, cyberpunk] : normal, standard mpl - cyberpunk,
cyberpunk style
--old_pred OLD_PRED if True plot also the prediction curve from a week ago.
```

## Examples
![Totale contagi](https://fit-covid19.herokuapp.com/imgs/Contagi.png?rel=true "Totale contagi")
![Contagi giornalieri](https://fit-covid19.herokuapp.com/imgs/Nuovi%20Contagiati.png?rel=true "Contagi giornalieri")

If you know this stuff and you think you can contribute please just let me know: fork this repo, pull request, star this repo, send me an email.

### Requirements
- Python >=3
- Pandas
- Numpy
- ScyPy