covid19 icon indicating copy to clipboard operation
covid19 copied to clipboard

Bad arguments in plot

Open wgova opened this issue 4 years ago • 2 comments

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

wgova avatar May 16 '20 12:05 wgova

Which NB?

twiecki avatar May 16 '20 15:05 twiecki

https://github.com/twiecki/covid19/blob/master/covid19_exp_model.ipynb

wgova avatar May 17 '20 15:05 wgova