Issue #404: Use na.omit() to remove NA values before scoring#465
Issue #404: Use na.omit() to remove NA values before scoring#465nikosbosse merged 17 commits intodevelopfrom
na.omit() to remove NA values before scoring#465Conversation
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? |
seabbs
left a comment
There was a problem hiding this comment.
LGTM. oof yes, I see what you mean!
Closes #404
Update:
We had an internal function to delete rows in the data where either
observedorpredictedareNA. 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 whenNAvalues are encountered (in contrast to the previous convoluted mechanism where a message attribute was created)summarise_scores()