rec <-
iris %>%
recipe(formula = Species ~ .) %>%
step_select_background(all_numeric_predictors(),
background_level = 4, prop_samples = 0.5) %>%
prep()
rec
tidy(rec, 1)
bake(rec, new_data = NULL)
Run the code above in your browser using DataLab