Skip to content

Commit

Permalink
Update ml_cov_search.R
Browse files Browse the repository at this point in the history
reset the seed on line 99 (back to the default seed = 123) at the beginning of each loop
  • Loading branch information
certara-irebai authored Sep 27, 2024
1 parent faf98b7 commit 443b8b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ml_cov_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ ml_cov_search <- function(data, pop_param, cov_continuous, cov_factors, seed = 1
pb <- progress::progress_bar$new(
format = "[:bar] :percent :elapsed elapsed / :eta remaining", total = length(pop_param) * 6, clear = FALSE, show_after = 0)
for (i in pop_param) {
set.seed(seed)
pb$message(paste0("Searching covariate effects on ", i))
pb$tick()

Expand Down

0 comments on commit 443b8b4

Please sign in to comment.