Code Monkey home page Code Monkey logo

covid19's Introduction

covid19

Analyses about the COVID-19 virus.

Running the covid19 project in local Docker

To run this project on your local docker install, simply execute the ./run.sh command in Terminal.

In the terminal session a link for the Jupyter Notebook Server will appear, alongside your token:

    To access the notebook, open this file in a browser:
        file:///root/.local/share/jupyter/runtime/nbserver-8-open.html
    Or copy and paste one of these URLs:
        http://103cc22c52c6:8888/?token=<your_very_long_unique_token>
     or http://127.0.0.1:8888/?token=<your_very_long_unique_token>

Copy and past the link in your browser to access the Server.

Running the covid19 project notebooks on mybinder

If you don't have access to a local Docker or Jupyter Server, you can run the notebooks in an interactive session on mybinder:

https://mybinder.org/v2/gh/twiecki/covid19/master

covid19's People

Contributors

aseyboldt avatar ephes avatar fabiononato avatar hamelsmu avatar kant avatar schuhmichael avatar twiecki avatar

Stargazers

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

Watchers

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

covid19's Issues

Some explaination

Hello,

I am missing some explaination for the bayes part (covid19_growth_bayes.ipynb)
What are the underlying assumptions of the prediction?

Regards,
Hendrik

df_sign

1-this data frame has countries less than the whole list, based on what you filtered the countries?
2- why did you eliminate China?

Altair chart not showing

Yesterday, I can run all of the cells.
But, today I can't show the altair chart. Please, give me some advice.
Thanks

covid19_sir.ipynb errors on first cell

I haven't seen the dependency sunode before. It is not pip installable. I tried pip installing by pointing to the GitHub repo, and by cloning it:

git clone https://github.com/aseyboldt/sunode.git
pip install ./sunode

But they both error out. Could you explain how to install sunode? Thank you.

Bad arguments in plot

Love this primer. It's really insightful.
post_pred is a dict with obs key with this structure: {'obs': array([[5.71667615e+02, 1.34905178e+03, 5.25019985e+00, ...]])}

This won't render in the plot: post_pred[country].T

fig, ax = plt.subplots(figsize=(10, 8))
ax.plot(post_pred[country].T, color='0.5', alpha=.05);
ax.plot(confirmed, color='r')
ax.set(xlabel='Days since 100 cases', ylabel='Confirmed cases', title=country);

Simplification proposal

Hi @twiecki,

I don't think there's a need to fully clone the John Hopkins repo. It is in fact sufficient to pull the raw data as follows:

import requests

...

base_url = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series'

...

def load_timeseries(name):
    url = f'{base_url}/time_series_19-covid-{name}.csv'
    csv = requests.get(url, proxies=proxies).text
    df = pd.read_csv(io.StringIO(csv), index_col=['Country/Region', 'Province/State', 'Lat', 'Long'], parse_dates=True)
    ...

Note that I have split the reading of the CSV text and the pandas parsing into two steps because I'm behind a corporate firewall and need proxies. You could combine the two into one by directly specifying the url in the call to pd.read_csv().

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.