Skip to content

Commit

Permalink
Merge pull request #977 from epiforecasts/forecast-ordinal
Browse files Browse the repository at this point in the history
Issue #846 - Implement scoring for ordinal forecasts
  • Loading branch information
nikosbosse authored Dec 9, 2024
2 parents 0761099 + 0219d10 commit e73e2b8
Show file tree
Hide file tree
Showing 40 changed files with 1,022 additions and 122 deletions.
35 changes: 18 additions & 17 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Authors@R: c(
family = "Abbott",
role = c("aut"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-8057-8037")),
comment = c(ORCID = "0000-0001-8057-8037")),
person(given = "Hugo",
family = "Gruson",
role = c("aut"),
Expand All @@ -22,7 +22,7 @@ Authors@R: c(
family = "Bracher",
role = c("ctb"),
email = "[email protected]",
comment = c(ORCID = "0000-0002-3777-1410")),
comment = c(ORCID = "0000-0002-3777-1410")),
person(given = "Toshiaki Asakura",
role = c("ctb"),
email = "[email protected]",
Expand All @@ -32,53 +32,54 @@ Authors@R: c(
role = c("ctb"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-5782-7330")),
person("Sebastian", "Funk",
email = "[email protected]",
person("Sebastian", "Funk",
email = "[email protected]",
role = c("aut")),
person(given = "Michael",
family = "Chirico",
role = c("ctb"),
email = "[email protected]",
comment = c(ORCID = "0000-0003-0787-087X")))
Description:
Facilitate the evaluation of forecasts in a convenient
framework based on data.table. It allows user to to check their forecasts
and diagnose issues, to visualise forecasts and missing data, to transform
data before scoring, to handle missing forecasts, to aggregate scores, and
to visualise the results of the evaluation. The package mostly focuses on
the evaluation of probabilistic forecasts and allows evaluating several
different forecast types and input formats. Find more information about the
package in the Vignettes as well as in the accompanying paper,
Description:
Facilitate the evaluation of forecasts in a convenient
framework based on data.table. It allows user to to check their forecasts
and diagnose issues, to visualise forecasts and missing data, to transform
data before scoring, to handle missing forecasts, to aggregate scores, and
to visualise the results of the evaluation. The package mostly focuses on
the evaluation of probabilistic forecasts and allows evaluating several
different forecast types and input formats. Find more information about the
package in the Vignettes as well as in the accompanying paper,
<doi:10.48550/arXiv.2205.07090>.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Imports:
Imports:
checkmate,
cli,
data.table,
ggplot2 (>= 3.4.0),
lifecycle,
methods,
Metrics,
purrr,
scoringRules,
stats
Suggests:
Suggests:
ggdist,
kableExtra,
knitr,
magrittr,
rmarkdown,
testthat (>= 3.1.9),
vdiffr
Config/Needs/website:
Config/Needs/website:
r-lib/pkgdown,
amirmasoudabdol/preferably
Config/testthat/edition: 3
RoxygenNote: 7.3.2
URL: https://doi.org/10.48550/arXiv.2205.07090, https://epiforecasts.io/scoringutils/, https://github.com/epiforecasts/scoringutils
BugReports: https://github.com/epiforecasts/scoringutils/issues
VignetteBuilder: knitr
Depends:
Depends:
R (>= 4.0)
Roxygen: list(markdown = TRUE)
10 changes: 9 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ S3method(as_forecast_quantile,forecast_sample)
S3method(assert_forecast,default)
S3method(assert_forecast,forecast_binary)
S3method(assert_forecast,forecast_nominal)
S3method(assert_forecast,forecast_ordinal)
S3method(assert_forecast,forecast_point)
S3method(assert_forecast,forecast_quantile)
S3method(assert_forecast,forecast_sample)
S3method(get_metrics,forecast_binary)
S3method(get_metrics,forecast_nominal)
S3method(get_metrics,forecast_ordinal)
S3method(get_metrics,forecast_point)
S3method(get_metrics,forecast_quantile)
S3method(get_metrics,forecast_sample)
Expand All @@ -29,6 +31,7 @@ S3method(print,forecast)
S3method(score,default)
S3method(score,forecast_binary)
S3method(score,forecast_nominal)
S3method(score,forecast_ordinal)
S3method(score,forecast_point)
S3method(score,forecast_quantile)
S3method(score,forecast_sample)
Expand All @@ -38,6 +41,7 @@ export(ae_median_quantile)
export(ae_median_sample)
export(as_forecast_binary)
export(as_forecast_nominal)
export(as_forecast_ordinal)
export(as_forecast_point)
export(as_forecast_quantile)
export(as_forecast_sample)
Expand All @@ -61,12 +65,13 @@ export(interval_coverage)
export(is_forecast)
export(is_forecast_binary)
export(is_forecast_nominal)
export(is_forecast_ordinal)
export(is_forecast_point)
export(is_forecast_quantile)
export(is_forecast_sample)
export(log_shift)
export(logs_binary)
export(logs_nominal)
export(logs_categorical)
export(logs_sample)
export(mad_sample)
export(new_forecast)
Expand All @@ -81,6 +86,7 @@ export(plot_pairwise_comparisons)
export(plot_quantile_coverage)
export(plot_wis)
export(quantile_score)
export(rps_ordinal)
export(score)
export(se_mean_sample)
export(select_metrics)
Expand Down Expand Up @@ -178,11 +184,13 @@ importFrom(ggplot2,theme_minimal)
importFrom(ggplot2,unit)
importFrom(ggplot2,xlab)
importFrom(ggplot2,ylab)
importFrom(lifecycle,deprecate_warn)
importFrom(methods,hasArg)
importFrom(purrr,partial)
importFrom(scoringRules,crps_sample)
importFrom(scoringRules,dss_sample)
importFrom(scoringRules,logs_sample)
importFrom(scoringRules,rps_probs)
importFrom(stats,cor)
importFrom(stats,mad)
importFrom(stats,median)
Expand Down
Loading

0 comments on commit e73e2b8

Please sign in to comment.