-
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 #404: Use na.omit()
to remove NA
values before scoring
#465
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #465 +/- ##
===========================================
- Coverage 82.50% 81.87% -0.63%
===========================================
Files 20 20
Lines 1680 1677 -3
===========================================
- Hits 1386 1373 -13
- Misses 294 304 +10 ☔ View full report in Codecov by Sentry. |
…hange and some rethinking
get_complete_forecasts()
to usersna.omit()
to remove NA
values before scoring
Phew. In theory, this should be a very simple PR, in practice it turned out not to be.
and probably more, as they all run Some options (likely for future PRs):
|
I feel like this might be the least painful option even if it does add an additional user step? |
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. oof yes, I see what you mean!
Closes #404
Update:
We had an internal function to delete rows in the data where either
observed
orpredicted
areNA
. After rethinking this a bit it feels like the best solution is to simply replace this function withna.omit()
:The PR
remove_NA_observed_predicted()
withna.omit()
na.omit()
is what we expect (e.g. checking classes / attributes are respected)validate_general()
to throw a message whenNA
values are encountered (in contrast to the previous convoluted mechanism where a message attribute was created)summarise_scores()