tufts-ml / covid19-forecasting

Simulation software for forecasting demand at various stages of hospitalization
MIT License
3 stars 0 forks source link

UPDATE for 04/20: More realistic vent count projections, added "slow ramp" initialization of counts, updated viz hooks #23

Closed michaelchughes closed 4 years ago

michaelchughes commented 4 years ago

Several big changes here (to Workflows and to core Simulation syntax)

Changes to workflows

Changes to params.json and run_forecast.py/PatientTrajectory.py

Use syntax like this in params to say (add 15 subjects 3 days ago, 10 subjects 2 days ago, 5 subjects 1 ago, and 0 now:

"init_num_OnVentInICU":   {"-3": 15, "-2":10, "-1": 5, "0": 2},

To specify the distribution, use syntax like below -- pmf_initial_duration_spent_{state} -- :

"pmf_initial_duration_spent_OnVentInICU": {
    "0": 0.5, "1": 0.3, "2": 0.1, "3": 0.05, "4": 0.05}