Skip to content

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

Merged
merged 153 commits into from
Oct 17, 2022

Conversation

nmdefries
Copy link
Contributor

@nmdefries nmdefries commented Sep 23, 2022

Description

Move the covid-19/jingjing/backfill_correction branch and associated commit history to covidcast-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

  • Current version of delphiBackfillCorrections package.Slack discussion here

Fixes

Partially addresses #1700

Copy link
Contributor

@krivard krivard left a 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?

- 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:
Copy link
Contributor

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?

@nmdefries
Copy link
Contributor Author

Whoops, I added local test output files when renaming the directory. Removed in fb38e07

@jingjtang
Copy link
Contributor

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?

@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, num and denom are the two fixed columns, but we have some extra ones like num_age_0_4 etc. for Quidel.

Copy link
Contributor

@krivard krivard left a 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

Comment on lines +1 to +2
#' @param testing_window the testing window used for saving the runtime. Could
#' set it to be 1 if time allows
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Contributor

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.

@jingjtang
Copy link
Contributor

jingjtang commented Sep 29, 2022

keeping track of models and their training end dates

We have training_end_dates to be a prefix of the model names, so we do keep records of themodels

@krivard
Copy link
Contributor

krivard commented Sep 29, 2022

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.

@nmdefries
Copy link
Contributor Author

@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.

@krivard krivard merged commit 58a57df into main Oct 17, 2022
@krivard krivard deleted the ndefries/merge-backfill-corrections branch October 17, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants