-
Notifications
You must be signed in to change notification settings - Fork 10
bug in layer_add_forecast_date()
#109
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
Comments
Whoops... Posted in the related #108 by accident, so moving those comments over here. Based on the ~July 6 discussion about this on Components conundrum doc, the We could always revert these back to what I had a long time ago and have the user input the (non-forged) test data into the layer directly as an argument, but I’d have thought that there’d be an easier way for something like this. |
Components conundrum ex. set-up (see test-layer_add_forecast_date.R for this):
What (I think) we want to extract max(time_value):
What components contains (pertains to the test about the default
|
It seems like the easiest thing at the moment is to adjust the |
I think we do that plus the entire workflow (as in #108). One alternative (or addition) would be to add a step that detects the forecast date at training time. And then, given the workflow, we could look for that. |
Ok. I agree with the first suggestion to adjust the signature of |
The default
forecast_date
(andtarget_date
) seems wrong.Using
case_death_rate_subset
the fd should default to 2021-12-31 (most recent available) but instead is 2022-01-28. I think this has to do with the fact that thecomponents$keys$time_value
gets adjusted in the training data to add theahead
. We actually need the latest value in the test data (though if there isn't a lag 0, this wouldn't work either).It may help to have access to the entire workflow at predict time as suggested in #108 .
The text was updated successfully, but these errors were encountered: