# NOT RUN {
library(recipes)
recipe(mpg ~ ., data = mtcars) %>%
step_knnimpute(all_predictors()) %>%
step_pca(all_numeric_predictors()) %>%
tunable()
recipe(mpg ~ ., data = mtcars) %>%
step_normalize(all_numeric_predictors()) %>%
tunable()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab