-
Notifications
You must be signed in to change notification settings - Fork 8
Should slide()
for epi_archive
be given access to less than the most up-to-date snapshots?
#49
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
I'd lean toward separate functions, but not too strongly. Pro for using parameter: doesn’t crowd package namespace Pro for using separate functions: keeps the types involved a little more consistent:
The interface is the most important, but code-wise we might also think that the parameter approach might provide more immediate input validation or avoid repeated validation of the same inputs, while the separate-functions approach would have simpler control flow (no branching on the string argument; instead, we’d probably have as_of call archive_as_of internally, and slide call slide_by_archive internally). |
Thanks! Reading what you wrote, and thinking about it myself, I'm actually favoring implementing it as a parameter @dajmcdon @jacobbien @elray1 Opinions? |
The |
Just curious, which branch/PR? |
Sorry, good catch. Got mixed up with |
Closed by #259 |
Currently the
slide()
method for theepi_archive
class only uses the most up-to-date values of each signal as of the reference time for the sliding computation. To do this, it calls theas_of()
method for theepi_archive
class.Some computations, e.g., backcasting or nowcasting, will want to access more than just the most up-to-date signal values. Should we extend
slide()
andas_of()
to accommodate this? We could do it with an extra argumentall_versions = TRUE
. The default should beFALSE
so the methods continue to behave as-is.Or should these be separate functions entirely and keep
slide()
andas_of()
so that they just consider/deliver the most recent snapshots?@lcbrooks @elray1 @dajmcdon @jacobbien Do you guys have opinions?
The text was updated successfully, but these errors were encountered: