# NOT RUN {
library(recipes)
recipe(mpg ~ ., data = mtcars) %>%
step_knnimpute(all_predictors(), neighbors = tune()) %>%
step_pca(all_predictors(), num_comp = tune()) %>%
tune_args()
recipe(mpg ~ ., data = mtcars) %>%
step_ns(disp, deg_free = tune("disp df")) %>%
step_ns(wt, deg_free = tune("wt df")) %>%
tune_args()
recipe(mpg ~ ., data = mtcars) %>%
step_normalize(all_predictors()) %>%
tune_args()
library(parsnip)
boost_tree(trees = tune(), min_n = tune()) %>%
set_engine("xgboost") %>%
tune_args()
boost_tree(trees = tune(), min_n = tune()) %>%
set_engine("C5.0", rules = TRUE) %>%
tune_args()
# }
Run the code above in your browser using DataLab