Skip to content

Commit

Permalink
Update crps_logs_score.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rqthomas authored Nov 17, 2023
1 parent 5158fb8 commit 54a9a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/crps_logs_score.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ summarize_forecast <- function(forecast, extra_groups = NULL) {
"datetime", "family", "variable", "pubDate", extra_groups)

forecast |>
dplyr::recode("family", from="ensemble", to="sample") |>
dplyr::mutate(family = ifelse(family == "ensemble", "sample", family)) |>
dplyr::group_by(dplyr::across(dplyr::any_of(grouping))) |>
dplyr::summarise(dist = infer_dist(family, parameter, prediction),
.groups = "drop") |>
Expand Down

0 comments on commit 54a9a6d

Please sign in to comment.