Repository navigation
Review #363 (6/19): supported_measures_list becomes the function supported_measures() - #431
Draft
florence-bockting wants to merge 3 commits into
Draft
florence-bockting wants to merge 3 commits into
florence-bockting wants to merge 3 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## fix/pred-measure-args #431 +/- ##
======================================================
Coverage 92.44% 92.44%
======================================================
Files 38 38
Lines 4712 4713 +1
======================================================
+ Hits 4356 4357 +1
Misses 356 356 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
This is how benchmark results would change (along with a 95% confidence interval in relative change) if ec95927 is merged into fix/pred-measure-args:
Further explanation regarding interpretation and methodology can be found in the documentation. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 6/19 for the review of #363. It stacks on #430, because both change
.prepare_measures().I will rebase it to
pred_measureafter #430 merges.supported_measures_listbecomes the functionsupported_measures()Review comment: r4553955796
Implementation:
supported_measures()is exported and returnsnames(.measure_spec)(R/pred_measure-builtin.R). The constantsupported_measures_listis removed..prepare_measures()callssupported_measures()and has nosupported_measures_listargument. Its callerdo_pred_measure()no longer passes the constant. The name check in.measure_entry_custom()also calls the function._pkgdown.yml,NEWS.mdandmigration-guide.Rmdusesupported_measures().Tests:
test_pred_measure_helpers.Rno longer gets the constant withgetFromNamespace(). The.prepare_measures()calls have nosupported_measures_listargument. A new test checks thatsupported_measures()returns a character vector with"elpd","rmse"and"srps".Test runs
The tests that match
pred_measure|compare|deprecatedpass withNOT_CRAN=true:[ FAIL 0 | WARN 52 | SKIP 0 | PASS 810 ]. On the base branch (#430) the result is[ FAIL 0 | WARN 52 | SKIP 0 | PASS 808 ]. The 2 extra passes come from the new test.This PR was assisted by use of LLM.