Skip to content

Commit 1ef1f23

Browse files
committed
updates for dials 1.3.0
1 parent 2fd951c commit 1ef1f23

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

R/tune_cluster.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ tune_cluster_loop <- function(resamples,
222222
# created by `eval()`. This causes the handler to run much too early. By evaluating in
223223
# a local environment, we prevent `defer()`/`on.exit()` from finding the short-lived
224224
# context of `%op%`. Instead it looks all the way up here to register the handler.
225-
225+
226226
results <- local({
227227
suppressPackageStartupMessages(
228228
foreach::foreach(
@@ -1040,7 +1040,7 @@ check_grid <- function(grid, workflow, pset = NULL) {
10401040
}
10411041
check_workflow(workflow, pset = pset, check_dials = TRUE)
10421042

1043-
grid <- dials::grid_latin_hypercube(pset, size = grid)
1043+
grid <- dials::grid_space_filling(pset, size = grid)
10441044
grid <- dplyr::distinct(grid)
10451045
}
10461046

tests/testthat/_snaps/tune_cluster.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
1
8080
}, save_pred = TRUE))
8181
Message
82-
x Fold1: preprocessor 1/1: Error in `get_all_predictors()`:
83-
! The following predi...
84-
x Fold2: preprocessor 1/1: Error in `get_all_predictors()`:
85-
! The following predi...
82+
x Fold1: preprocessor 1/1: Error in `hardhat::mold()`:
83+
! The following predictor ...
84+
x Fold2: preprocessor 1/1: Error in `hardhat::mold()`:
85+
! The following predictor ...
8686
Condition
8787
Warning:
8888
All models failed. See the `.notes` column.
@@ -118,8 +118,8 @@
118118
# A tibble: 2 x 4
119119
splits id .metrics .notes
120120
<list> <chr> <list> <list>
121-
1 <split [16/16]> Fold1 <tibble [4 x 5]> <tibble [0 x 3]>
122-
2 <split [16/16]> Fold2 <tibble [4 x 5]> <tibble [0 x 3]>
121+
1 <split [16/16]> Fold1 <tibble [6 x 5]> <tibble [0 x 3]>
122+
2 <split [16/16]> Fold2 <tibble [6 x 5]> <tibble [0 x 3]>
123123

124124
# select_best() and show_best() works
125125

0 commit comments

Comments
 (0)