Nothing
Code
car_set_2 <- workflow_map(workflow_set(list(reg = mpg ~ ., nonlin = mpg ~ wt +
1 / sqrt(disp)), list(lm = lr_spec), case_weights = non_wts), "fit_resamples",
resamples = vfold_cv(cars, v = 5))
Message
x Fold1: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold2: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold3: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold4: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold5: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Message
x Fold1: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold2: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold3: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold4: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
x Fold5: preprocessor 1/1:
Error in `fit()`:
! `col` must select a classed case weights column, as determined by `h...
i For example, it could be a column created by `hardhat::frequency_wei...
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Code
class_note$note[1]
Output
[1] "Error in `fit()`:\n! `col` must select a classed case weights column, as determined by `hardhat::is_case_weights()`.\ni For example, it could be a column created by `hardhat::frequency_weights()` or `hardhat::importance_weights()`."
Code
car_set_3 <- workflow_set(list(reg = mpg ~ ., nonlin = mpg ~ wt + 1 / sqrt(disp)),
list(lm = lr_spec, knn = knn_spec), case_weights = wts)
Condition
Warning:
Case weights are not enabled by the underlying model implementation for the engine "kknn".
i The `case_weights` argument will be ignored for specifications using that engine.
Code
car_set_4 <- workflow_map(workflow_set(list(reg = mpg ~ ., nonlin = mpg ~ wt +
1 / sqrt(disp)), list(lm = lr_spec), case_weights = boop), "fit_resamples",
resamples = vfold_cv(cars, v = 5))
Message
x Fold1: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold2: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold3: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold4: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold5: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Message
x Fold1: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold2: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold3: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold4: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
x Fold5: preprocessor 1/1:
Error in `fit()`:
! Can't select columns that don't exist.
x Column `boop` doesn't exist.
Condition
Warning:
All models failed. Run `show_notes(.Last.tune.result)` for more information.
Code
class_note$note[1]
Output
[1] "Error in `fit()`:\n! Can't select columns that don't exist.\nx Column `boop` doesn't exist."
Code
nrow(workflow_set(list(reg = mpg ~ ., nonlin = mpg ~ wt + 1 / sqrt(disp), two = mpg ~
wt + disp), list(lm = lr_spec, knn = knn_spec), cross = FALSE))
Condition
Error in `workflow_set()`:
! The lengths of `preproc` and `models` are different and `cross = FALSE`.
Code
as_workflow_set(wt = f_1, disp = f_2)
Condition
Error in `as_workflow_set()`:
! Different resamples were used in the workflow results.
i All elements of result must use the same resamples.
Code
new_workflow_set(dplyr::select(car_set_1, -info))
Condition
Error:
! The object should have columns wflow_id, info, option, and result.
Code
new_workflow_set(dplyr::mutate(car_set_1, info = "a"))
Condition
Error:
! The info column should be a list.
Code
new_workflow_set(dplyr::mutate(car_set_1, result = "a"))
Condition
Error:
! The result column should be a list.
Code
new_workflow_set(dplyr::mutate(car_set_1, option = "a"))
Condition
Error:
! The option column should be a list.
Code
new_workflow_set(dplyr::mutate(car_set_1, wflow_id = 1))
Condition
Error:
! The wflow_id column should be character.
Code
new_workflow_set(dplyr::mutate(car_set_1, wflow_id = "a"))
Condition
Error:
! The wflow_id column should contain unique, non-missing character strings.
# A workflow set/tibble: 3 x 4
wflow_id info option result
<chr> <list> <list> <list>
1 date_lm <tibble [1 x 4]> <opts[0]> <list [0]>
2 plus_holidays_lm <tibble [1 x 4]> <opts[0]> <list [0]>
3 plus_pca_lm <tibble [1 x 4]> <opts[0]> <list [0]>
# A workflow set/tibble: 3 x 4
wflow_id info option result
<chr> <list> <list> <list>
1 date_lm <tibble [1 x 4]> <opts[2]> <rsmp[+]>
2 plus_holidays_lm <tibble [1 x 4]> <opts[2]> <rsmp[+]>
3 plus_pca_lm <tibble [1 x 4]> <opts[3]> <tune[+]>
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.