-
Notifications
You must be signed in to change notification settings - Fork 25
don't error if baseline model is not present #250
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #250 +/- ##
==========================================
- Coverage 91.32% 91.20% -0.13%
==========================================
Files 22 22
Lines 1361 1364 +3
==========================================
+ Hits 1243 1244 +1
- Misses 118 120 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
c54d371 to
34ec2ea
Compare
|
On reflection and now that the immediate problem has been fixed I think it makes more sense to error here as baseline will have been set to not- |
|
Could you please clarify again what should happen with this PR? |
34ec2ea to
75a961a
Compare
As far as I'm concerned it's ready to be merged. |
7c02a23 to
14d7451
Compare
|
The test was failing, so I updated it. Just to confirm: before the function was failing with a cryptic message and now there is an explicit error message, right? |
There is already a check at an earlier point scoringutils/R/summarise_scores.R Line 187 in 3e1a9d6
summarise_scores. If pairwise_comparison is called directly as e.g. in https://github.com/covid19-forecast-hub-europe/EuroForecastHub/blob/e2dc0c97f379f2001e57ad84853df7577df59d9a/R/summarise_scores.R#L79 then this is not done.
What I'm not clear on is whether this could have been implemented using |
avoids the pairwise comparison erroring if the specified baseline model is not present in the data (happening in some instance at the European Forecast Hub).
It could also make sense to throw an informative error. The function can still compute useable pairwise comparisons so I thought a warning might be more appropriate here.