CodeForPhilly / chime

COVID-19 Hospital Impact Model for Epidemics
https://codeforphilly.github.io/chime/
MIT License
205 stars 151 forks source link

["model"] #449

Closed jlubken closed 4 years ago

jlubken commented 4 years ago

Summary

Prefit policies are not assembled correctly for distancing < day 0.

Additional details

current_date census does not line up with the with the user's entered currently_hospitalized after fitting.

Suggested fix

Check how the policies are assembled for the prefit curve.

PhilMiller commented 4 years ago

@cjbayesian Could you post any details of what you're seeing? I'll follow up on this as needed, but don't want to repeat work or miss the point.

PhilMiller commented 4 years ago

Ok, I can see this now, after playing with things for a bit. It doesn't require distancing to be applied at all. The problem is that with just the doubling time parameter to work with, the possible values of the simulated census are discretized by the increments of the doubling time.

I've tried running the doubling time fit at higher resolution naively, and it does indeed get a lot slower. I'll write some iterative refinement code for that instead which should be much better.

PhilMiller commented 4 years ago

Have a look at branch refined-fitting

PhilMiller commented 4 years ago

It's a lot closer, but without burning a bunch more cycles, or spending more time optimizing the code's performance, it's not going to be exact

PhilMiller commented 4 years ago

456 gets an annoyance out of the way, and would ideally be merged in short order.