Nothing
Code
cars_res <- tune_grid(helper_objects$svm_mod, preprocessor = rec, resamples = data_folds,
grid = cars_grid, control = control_grid(extract = function(x) {
1
}, save_pred = TRUE))
Message
x Fold1: preprocessor 1/1:
Error in `step_bs()`:
Caused by error in `if (...) NULL`:
! missing value where TRUE/FALSE needed
x Fold2: preprocessor 1/1:
Error in `step_bs()`:
Caused by error in `if (...) NULL`:
! missing value where TRUE/FALSE needed
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Code
cars_res <- tune_grid(helper_objects$svm_mod, y ~ z, resamples = data_folds,
grid = cars_grid, control = control_grid(extract = function(x) {
1
}, save_pred = TRUE))
Message
x Fold1: preprocessor 1/1:
Error in `get_all_predictors()`:
! The following predictors were not found in `data`: 'z'.
x Fold2: preprocessor 1/1:
Error in `get_all_predictors()`:
! The following predictors were not found in `data`: 'z'.
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Code
tune_grid(helper_objects$rec_tune_1, helper_objects$lm_mod, rsample::vfold_cv(
mtcars, v = 2))
Condition
Error in `tune_grid()`:
! The first argument to [tune_grid()] should be either a model or workflow.
Code
tune_grid(mpg ~ ., helper_objects$lm_mod, rsample::vfold_cv(mtcars, v = 2))
Condition
Error in `tune_grid()`:
! The first argument to [tune_grid()] should be either a model or workflow.
Code
tune_grid(wflow, resamples = folds, grid = 3, something = "wrong")
Condition
Warning:
The `...` are not used in this function but one or more objects were passed: 'something'
Output
# Tuning results
# 10-fold cross-validation
# A tibble: 10 x 4
splits id .metrics .notes
<list> <chr> <list> <list>
1 <split [28/4]> Fold01 <tibble [4 x 5]> <tibble [0 x 3]>
2 <split [28/4]> Fold02 <tibble [4 x 5]> <tibble [0 x 3]>
3 <split [29/3]> Fold03 <tibble [4 x 5]> <tibble [0 x 3]>
4 <split [29/3]> Fold04 <tibble [4 x 5]> <tibble [0 x 3]>
5 <split [29/3]> Fold05 <tibble [4 x 5]> <tibble [0 x 3]>
6 <split [29/3]> Fold06 <tibble [4 x 5]> <tibble [0 x 3]>
7 <split [29/3]> Fold07 <tibble [4 x 5]> <tibble [0 x 3]>
8 <split [29/3]> Fold08 <tibble [4 x 5]> <tibble [0 x 3]>
9 <split [29/3]> Fold09 <tibble [4 x 5]> <tibble [0 x 3]>
10 <split [29/3]> Fold10 <tibble [4 x 5]> <tibble [0 x 3]>
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.