-
Notifications
You must be signed in to change notification settings - Fork 16
Migrate the delphiBackfillCorrections
package from the covid-19
repo
#1701
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
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.
some followups, but also @nmdefries something has gone a bit weird with the file organization here -- there are files that used to be in delphiBackfillCorrection that are now only found deep in the delphiBackfillCorrection.Rcheck directory. What is supposed to be here?
Backfill_Correction/README.md
Outdated
- lag: the number of days between issue date and the reference date | ||
- issue_date: issue date/report, required if lag is not available | ||
|
||
Required columns without fixed column names: |
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.
are there any constraints on the name, like does it have to fit a certain pattern? otherwise how does the code know which columns do what?
Whoops, I added local test output files when renaming the directory. Removed in fb38e07 |
Co-authored-by: nmdefries <[email protected]>
@krivard There would be a constraint when the functions are used for tooling. But here, for the daily production, the uncertainty is created by Quidel since Quidel has multiple age group signals. We don't want to add burden on the storage of backfill files. So, currently, for all the other indicators, |
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 believe this is a complete pass, and I'm provisionally fine with merging this as-is or with the suggested changes.
I do want to flag a couple of things for later discussion and possible refactor:
- keeping track of models and their training end dates
- flow of training and test data through prediction and training modes
#' @param testing_window the testing window used for saving the runtime. Could | ||
#' set it to be 1 if time allows |
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.
If you don't set it to 1, what should it be set to?
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.
Since we run it daily, we can just set it to 1. If for some reasons we don't have the prediction result for several days and don't traverse the training date, then we can produce the prediction for those days at once by change the value of testing window
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.
by change the value of testing window
change it to what?
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.
To what ever number of days of prediction we missed.
Backfill_Correction/delphiBackfillCorrection/R/beta_prior_estimation.R
Outdated
Show resolved
Hide resolved
Co-authored-by: Katie Mazaitis <[email protected]>
We have training_end_dates to be a prefix of the model names, so we do keep records of themodels |
Yes -- the system of model filenames and additional metadata files is needlessly complicated. We can discuss a refactor in a future version. |
@krivard This is ready to merge. Additional package setup (e.g. tests on push) will be done in a separate PR. Expect some changes after the planning meeting. |
Description
Move the
covid-19/jingjing/backfill_correction
branch and associated commit history tocovidcast-indicators
.Used this approach to preserve the commit history. Additional Slack discussion here.
Additional package setup (e.g. tests on push) will be done in a separate PR.
Changelog
delphiBackfillCorrections
package.Slack discussion hereFixes
Partially addresses #1700