`filter_scores()`, `impute_missing_scores()`, `transform_forecasts()`, `get_coverage()`: edge cases
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- r
- Domain
- testing-qa
Research direction
Start by reading the implementations and tests for filter_scores(), impute_missing_scores(), transform_forecasts(), get_coverage(), and log_shift(), then inspect the “Handling missing forecasts” vignette. Reproduce the listed edge cases and check how existing tests cover them. Done means the identified input, validation, output, interface, and vignette issues are addressed and regression coverage confirms the expected behavior.
Written by the indexing model from the issue text.
Description
CLAUDE: - [ ] compare is not checked against the forecast unit in filter_scores() and impute_missing_scores(): filter_scores(scores, compare = "wis") removes every row with only an info message; NA in the compare column is treated as a comparator and gets imputed rows.
- Summarised scores are accepted: imputing then mixes levels of aggregation, and
filter_scores()on scores summarised by model fails with a raw data.table error. - The default log transform on counts with zeros makes
score()dropbiasfor the whole data set (natural scale included): zero quantiles become-Infandbias_quantile()fails ondiff()of infinite values. The validation insidetransform_forecasts()is wrapped insuppressWarnings(suppressMessages()), so nothing reports the infinite values. -
transform_forecasts()accepts binary, nominal and ordinal forecasts and appliesfunto probabilities and factor observations. -
log_shift()checks the input before applying the offset (log_shift(-0.5, offset = 1)aborts) and acceptsbase = 0andbase = 1. -
get_coverage()gives two values for one interval when a forecast lacks one bound: the row of the lower quantile level isNA, the row of the upper level a number. - Sample PIT bin labels are
[a,b)but values are binned right-closed. - Interface:
get_pit_histogram()has no default forby(get_coverage()has);impute_model_score(model = )is namedmodelalthoughcomparecan be any column;filter_scores()returns a keyed, re-sorted table;labelintransform_forecasts()is documented as only relevant forappend = TRUEbut is also used otherwise. - Vignette "Handling missing forecasts": the explanation of why thresholds between 0.75 and 1 behave alike is wrong (9 death targets are covered by exactly three models); the conclusion is right.
Found during a full review of the package (version 2.3.0.9000, main at 779d7d68).
- Dominant language
- R
- Stars
- 67
- Forks
- 24
- Avg merge
- 1h 24m
- Merged PRs (30d)
- 2
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from epiforecasts/scoringutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
epiforecasts/scoringutils#1264 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
epiforecasts/scoringutils#1265 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
epiforecasts/scoringutils#1260 ·
Maintainers usually reply within 1 day
-
Incorrect guidance in `NEWS.md` re `add_relative_skill()`?Possibly taken @nikosbosse claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
epiforecasts/scoringutils#1226 · 1 comment · 2 reactions ·
Maintainers usually reply within 1 day
-
get_pit_histogram(): unsorted breaks produce negative densities; num_bins = 1 returns an empty tablePossibly taken @nikosbosse claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
epiforecasts/scoringutils#1219 ·
Maintainers usually reply within 1 day
All issues in epiforecasts/scoringutils
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
leppott/BioMonTools#162 ·
-
publications
Difficulty 1/5 Under an hour Newbie friendliness 85/100
epiforecasts/epiforecasts.github.io#161 ·
Maintainers usually reply within 1 day
-
Label `{sas}` chunk source as `sas` instead of `txt`, so it gets syntax highlightingPossibly taken @michaelmayer2 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microbiome/OMA#1031 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ThinkR-open/golem#1265 ·