Skip to content
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

Example forecaster for modeltools #510

Merged
merged 5 commits into from
Mar 25, 2021
Merged

Conversation

sgsmob
Copy link
Contributor

@sgsmob sgsmob commented Mar 24, 2021

Adds an example forecaster to modeltools that demonstrates how to use the modeltools functions to construct a forecaster with quantgen.

@sgsmob sgsmob changed the base branch from main to modeltools March 24, 2021 19:46
@sgsmob
Copy link
Contributor Author

sgsmob commented Mar 24, 2021

@dajmcdon This is my example forecaster

R-packages/modeltools/R/example_forecaster.R Outdated Show resolved Hide resolved
R-packages/modeltools/R/example_forecaster.R Outdated Show resolved Hide resolved
@@ -109,7 +109,7 @@
#' @importFrom dplyr filter select pull summarize between bind_cols
#' @importFrom tidyr pivot_longer
#' @export
quantgen_forecaster = function(df, forecast_date, signals, incidence_period,
quantgen_forecaster = function(df_list, forecast_date, signals, incidence_period,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This signature won't work with the new evalcast. Unless you pass some of these through the forecaster_args() list.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of it is actually unnecessary though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plan is to make it all compliant with the new evalcast although I realize that they are not visible from one another yet.

@sgsmob sgsmob requested a review from dajmcdon March 25, 2021 14:59
@dajmcdon dajmcdon merged commit 38705ec into cmu-delphi:modeltools Mar 25, 2021
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.

None yet

2 participants