Coder Social home page Coder Social logo

lucaangioloni / fit-covid19 Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 1.0 157 KB

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

License: MIT License

Python 100.00%
prediction python covid-19 logistic regression scikit-learn covid19 covid-virus forecasting coronavirus

fit-covid19's Introduction

fit-COVID19

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

Data is taken from this official repo

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:

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:

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

fit-covid19's People

Contributors

lucaangioloni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

vanshikhasingh

fit-covid19's Issues

Predizione su attualmente positivi

Ciao Luca,

Volevo innanzitutto farti i complimenti per l'ottimo lavoro. Volevo chiederti come mai non è stata implementato il fitting della gaussiana sulla curva degli attualmente positivi. Ho provato a farlo e ottengo qualcosa di simile a questo:

Attualmente Positivi

Ho dovuto rimuovere il bounds e p0 iniziali della funzione curve_fit, pensi possa essere ugualmente accurato?

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.