-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issue #846 - Implement scoring for ordinal forecasts #977
Conversation
Thanks for putting this together! Quick response to your question about existing implementations of RPS: I don't know of any formal, well-tested implementations. The best I've put together is a quick proof of concept. |
Ah just realised that |
@elray1 updated the code and edited unit tests for the rps. It now uses the scoringRules version. I think/hope I got the logic for reordering the columns correct, but would appreciate a second pair of eyes |
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 looks good to me. I'm not totally across the rps so it might be a good idea for someone else to check
Co-authored-by: Sam Abbott <[email protected]>
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.
I read through the code and tried out a few worked examples. The functionality all looks good/correct. I had a few comments on documentation and example setup, as well as some suggestions for opportunities for refactoring/sharing code between the nominal and ordinal forecast classes which I'm perfectly happy if you ignore.
Co-authored-by: Evan Ray <[email protected]>
Most recent updates:
|
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
Description
This PR closes #846.
forecast_ordinal
The PR should probably have a few more tests at least for the RPS. @nickreich @elray1 do you happen to have a validated version/example somewhere that we can use?
I also haven't implemented the PIT yet, but I think that's a separate part of the codebase anyway (
get_pit_histogram
).There is a small change in the way a vignette is run conditional on
ggidst
being present that you can probably just ignore. Not sure why it worked before... See more info here: #917.Checklist
lintr::lint_package()
to check for style issues introduced by my changes.