covid19
covid19 copied to clipboard
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);
Which NB?
https://github.com/twiecki/covid19/blob/master/covid19_exp_model.ipynb