epiforecasts / scoringutils

Utilities for Scoring and Assessing Predictions
https://epiforecasts.io/scoringutils/
Other
48 stars 20 forks source link

Compact version of `get_duplicate_forecasts()` #909

Open nikosbosse opened 6 days ago

nikosbosse commented 6 days ago

Maybe something like the following would be nice.

Normal output

ex <- data.table::copy(example_quantile)
ex <- rbind(ex, ex[1000:1110])
duplicates <- get_duplicate_forecasts(ex)
duplicates
image

Compact version:

fu <- get_forecast_unit(duplicates)
duplicates[, .(n_duplicates = .N), by = c(fu)]
image

Could e.g. be an argument compact = TRUE or something like that.

seabbs commented 3 days ago

agree. This would be a good issue for a new contributor