-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add US hospitalization forecast group #7
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, @Serena-Wang! Most of the changes seem spot on. (I didn't check pandas manipulations very carefully.)
The only comments of significance were about the seeding process and the implications of dropping the first cumulative observation in SEIRD.py
and SEIRD_renewal.py
.
Seeding has always been a little fuzzy. My best guess is the changes are insignificant for incident forecasts but could matter for cumulative forecasts. I think we probably need to discuss exactly what we want there. It would be good if you could test what happens with cumulative forecasts, esp. with a start date well into the pandemic, to see what happens.
mechbayes/models/SEIRD_renewal.py
Outdated
if death is None: | ||
death0, death = (None, None) | ||
else: | ||
death0 = death[0] | ||
death = clean_daily_obs(onp.diff(death)) | ||
death = clean_daily_obs(death[1:]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a similar comment to the one in SEIRD.py
--- how does this affect seeding and cumulative forecasts?
mechbayes/util.py
Outdated
@@ -1,3 +1,4 @@ | |||
from pickle import FALSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minimal comments other than what Dan already noted.
else: | ||
variables = ['y', 'z'] | ||
observations= [confirmed, death] | ||
observations= [confirmed.cumsum(), death.cumsum()] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flagging this as a place where we might want to add in cum death on date before start_date
scripts/data_cleaning.py
Outdated
@@ -332,7 +372,7 @@ def make_manual_adjustments(data, forecast_date): | |||
# JHU: 2,029 historical cases; Ellis County reported 294 | |||
util.redistribute(data['TX']['data'], '2021-03-26', 2029+294, 90, 'confirmed') | |||
|
|||
util.redistribute(data['MN']['data'], '2021-03-25', 20, 20, 'death') | |||
#util.redistribute(data['MN']['data'], '2021-03-25', 20, 20, 'death') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did we just decide this was no longer necessary?
scripts/data_cleaning.py
Outdated
@@ -445,7 +485,7 @@ def make_manual_adjustments(data, forecast_date): | |||
|
|||
# https://github.com/CSSEGISandData/COVID-19/issues/3705 | |||
# (backdistributed week of March 1) | |||
#util.redistribute(data['IA']['data'], '2021-02-19', 26775, 200, 'confirmed') | |||
util.redistribute(data['IA']['data'], '2021-02-19', 26775, 200, 'confirmed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was previously commented out but isn't anymore?
…run_model and config, fix typo
mechbayes/jhu.py
:load_us_covidcast()
to load data for all target variables from covidcast.scripts/run_model.py
, add boolean parameteruse_hosp_as_death
to indicate whether a model needs to replace death observations with hospitalization observations