Skip to content

Commit

Permalink
load tuning params instead of running it
Browse files Browse the repository at this point in the history
  • Loading branch information
langbart committed Nov 12, 2023
1 parent c22eebc commit 02967ca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs_book/04-profiles.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ xgb_grid <- dials::grid_latin_hypercube(
size = 20
)
doParallel::registerDoParallel(cores = 6)
set.seed(891)
xgb_res <- tune::tune_grid(
xgb_wf,
resamples = folds,
grid = xgb_grid,
control = tune::control_grid(save_pred = TRUE)
)
#doParallel::registerDoParallel(cores = 6)
#set.seed(891)
#xgb_res <- tune::tune_grid(
# xgb_wf,
# resamples = folds,
# grid = xgb_grid,
# control = tune::control_grid(save_pred = TRUE)
#)
#readr::write_rds(xgb_res, file = paste0(system.file("model-outputs", package = "timor.nutrients"), "/xgb_res.rds"))
Expand Down

0 comments on commit 02967ca

Please sign in to comment.