Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mitokic committed Oct 14, 2024
1 parent 59066d6 commit 5c79652
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/prep_models.R
Original file line number Diff line number Diff line change
Expand Up @@ -733,11 +733,11 @@ model_hyperparameters <- function(run_info,

# get hyperparameters
hyperparameters_tbl <- tibble::tibble()
print("4")

for (x in iter_tbl %>% dplyr::group_split(dplyr::row_number(), .keep = FALSE)) {
model <- x %>%
dplyr::pull(Model_Name)
print(model)

recipe <- x %>%
dplyr::pull(Model_Recipe)

Expand All @@ -756,7 +756,7 @@ model_hyperparameters <- function(run_info,
dplyr::filter(Recipe == recipe) %>%
dplyr::select(Data) %>%
tidyr::unnest(Data)
print("3")

if (workflows::extract_parameter_set_dials(model_spec) %>% nrow() > 0) {
if (model == "svm-rbf") {
parameters <- model_spec %>%
Expand All @@ -768,9 +768,9 @@ model_hyperparameters <- function(run_info,
}

set.seed(seed)
print("2")

grid <- dials::grid_latin_hypercube(parameters, size = num_hyperparameters)
print("1")

hyperparameters_temp <- grid %>%
dplyr::group_split(dplyr::row_number(), .keep = FALSE) %>%
purrr::map_df(tidyr::nest, data = tidyselect::everything()) %>%
Expand Down

0 comments on commit 5c79652

Please sign in to comment.