Skip to content

Commit

Permalink
Update scoring.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rqthomas authored Nov 17, 2023
1 parent 28b004b commit 62f223a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scoring/scoring.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ furrr::future_walk(1:nrow(variable_duration), function(k, variable_duration, con
ref <- group$date

tg <- target |>
dplyr::mutate(depth_m = ifelse(!is.na(depth_m), round(depth_m, 2), depth_m)) |> #project_specific
#dplyr::mutate(depth_m = ifelse(!is.na(depth_m), round(depth_m, 2), depth_m)) |> #project_specific
dplyr::filter(lubridate::as_date(datetime) >= ref,
lubridate::as_date(datetime) < ref+lubridate::days(1))

Expand All @@ -128,7 +128,7 @@ furrr::future_walk(1:nrow(variable_duration), function(k, variable_duration, con
dplyr::collect()

fc |>
dplyr::mutate(depth_m = ifelse(!is.na(depth_m), round(depth_m, 2), depth_m)) |> #project_specific
#dplyr::mutate(depth_m = ifelse(!is.na(depth_m), round(depth_m, 2), depth_m)) |> #project_specific
dplyr::mutate(variable = curr_variable,
project_id = curr_project_id) |>
#If for some reason, a forecast has multiple values for a parameter from a specific forecast, then average
Expand Down

0 comments on commit 62f223a

Please sign in to comment.