-
Notifications
You must be signed in to change notification settings - Fork 0
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
remove snapshots of hubExamples data for tests, instead directly using hubExamples data objects #68
Conversation
…g hubExamples data objects
@@ -125,7 +125,7 @@ score_model_out <- function(model_out_tbl, oracle_output, metrics = NULL, | |||
#' Get scoring metrics | |||
#' | |||
#' @param forecast A scoringutils `forecast` object (see | |||
#' [scoringutils' general information on creating a `forecast` object][scoringutils::as_forecast_doc_template()] | |||
#' [scoringutils' general information on creating a forecast object][scoringutils::as_forecast_doc_template()] |
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.
This is unrelated to the main point of this PR, but fixes a complaint that check
raised: score_model_out.R:127: @param markdown links must contain plain text.
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.
Oh boo.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #68 +/- ##
==========================================
+ Coverage 93.43% 99.35% +5.91%
==========================================
Files 5 5
Lines 198 154 -44
==========================================
- Hits 185 153 -32
+ Misses 13 1 -12 ☔ View full report in Codecov by Sentry. |
model_out_tbl <- hubex_forecast_outputs() | ||
oracle_output <- hubex_forecast_oracle_output() | ||
# Forecast data from hubExamples: <https://hubverse-org.github.io/hubExamples/reference/forecast_data.html> | ||
forecast_outputs <- hubExamples::forecast_outputs |
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.
changed names from model_out_tbl
--> forecast_outputs
and oracle_output
--> forecast_oracle_output
for consistency with other tests using these data objects from hubExamples.
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.
LGTM.
As an aside, I now realize that "hubex" meant "hubExamples" and not some weird statistical term that refers to a specific transformation of data.
@@ -125,7 +125,7 @@ score_model_out <- function(model_out_tbl, oracle_output, metrics = NULL, | |||
#' Get scoring metrics | |||
#' | |||
#' @param forecast A scoringutils `forecast` object (see | |||
#' [scoringutils' general information on creating a `forecast` object][scoringutils::as_forecast_doc_template()] | |||
#' [scoringutils' general information on creating a forecast object][scoringutils::as_forecast_doc_template()] |
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.
Oh boo.
this fixes #67