Skip to content

Commit

Permalink
fix: pick refresh model by error_score correctly #674
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Apr 12, 2023
1 parent d51169d commit 4f3289d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/R/refresh.R
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ robyn_refresh <- function(json_file = NULL,
...
)

## Select winner model for current refresh
## Select winner model for current refresh (the higher error_score the better)
OutputCollectRF$resultHypParam <- OutputCollectRF$resultHypParam %>%
arrange(.data$solID, desc(.data$error_score)) %>%
arrange(desc(.data$error_score)) %>%
select(.data$solID, everything()) %>%
ungroup()
bestMod <- OutputCollectRF$resultHypParam$solID[1]
Expand Down

0 comments on commit 4f3289d

Please sign in to comment.