# NOT RUN {
library(recipes)
recipe(mpg ~ ., data = mtcars) %>%
step_knnimpute(all_predictors()) %>%
step_pca(all_predictors()) %>%
tunable()
recipe(mpg ~ ., data = mtcars) %>%
step_normalize(all_predictors()) %>%
tunable()
library(parsnip)
boost_tree() %>%
set_engine("xgboost") %>%
tunable()
boost_tree() %>%
set_engine("C5.0", rules = TRUE) %>%
tunable()
# }
Run the code above in your browser using DataLab