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

remove snapshots of hubExamples data for tests, instead directly using hubExamples data objects #68

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

elray1
Copy link
Contributor

@elray1 elray1 commented Jan 3, 2025

this fixes #67

@@ -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()]
Copy link
Contributor Author

@elray1 elray1 Jan 3, 2025

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.

Copy link
Member

Choose a reason for hiding this comment

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

Oh boo.

Copy link

github-actions bot commented Jan 3, 2025

Copy link

codecov bot commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.35%. Comparing base (937187a) to head (120cd25).
Report is 11 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

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
Copy link
Contributor Author

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.

@elray1 elray1 requested a review from zkamvar January 3, 2025 15:31
Copy link
Member

@zkamvar zkamvar left a 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()]
Copy link
Member

Choose a reason for hiding this comment

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

Oh boo.

@elray1 elray1 merged commit e2750ae into main Jan 3, 2025
10 checks passed
@elray1 elray1 deleted the elr/hubExamples_test_data branch January 3, 2025 17:04
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.

clean up use of hubExamples data in tests
2 participants