-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add forecast method #319
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
19039b5
to
7bf677b
Compare
edb2d22
to
934e7bf
Compare
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.
- Major change:
forecast
needs to be a method, not a standalone. - Minor issue: we should perhaps think about how many of the tests should be pivoted. I'm not sure it's a bad idea to duplicate or keep some as is to ensure that both options continues to work going forward.
Thanks for the review. Addressed your comments and the major point about forecast. Thinking we should handle the suppressWarning thing somewhere else, it seems to be kind of a rabbit hole (the answer isn't an easy "yea, no more warnings"). As for the tests comment, there are still many tests that I did not pivot over and those were the ones that used a non-standard new_data setting. I also have a test to compare the output of a |
On the warnings, it used to be that running a forecaster would always warn (because the data had as_of sometime in the past). I removed that warning. But all these others should be fixed. Agreed out of scope, but now that you've identified the problematic ones, can you create an issue for them? |
Made #323 to track those |
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.
Just a small suggestion for the method itself. Hopefully, you can just accept (assuming you agree) and CI will still pass.
* check postprocessor for forecast_date in forecast.epi_workflow * add test
@dshemetov what is "partial" about the fix to #293? |
In my notes from our last sync, we planned 3 PRs related to the discussions in that issue:
I'm happy to tackle the latter two in the coming months, though we'll probably need to sync and clarify how we're going to tackle those. |
Checklist
Please:
dajmcdon.
DESCRIPTION
andNEWS.md
.Always increment the patch version number (the third number), unless you are
making a release PR from dev to main, in which case increment the minor
version number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
0.7.2, then write your changes under the 0.8 heading).
epiprocess
version in theDESCRIPTION
file ifepiprocess
soonepipredict
andepiprocess
Change explanations for reviewer
A very simple PoC we discussed adding the forecast function. Not sure if I stored the
train_data
in the right place, currently inepi_workflow$fit$meta$train_data
, hopefully won't clobber anything there. Might be able to use...
instead of duplicatingget_train_data
args (though might be moot if we're aiming to deprecate that function anyway).The changes in
_pkgdown.yml
are mostly whitespace changes from my YAML linter (it likes that indent setting I guess). The only actual change was adding theforecast
function to the list. I thought about doing the whole dispatch thing withforecast.epi_workflow
, but it seemed like extra boilerplate. I could see it being handy if we expectforecast
to be a clobberable function name from other packages.TODO:
predict
in vignettes and examples withforecast
Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch
forecast()
method and "deprecate"get_test_data()
#293