Skip to content

Instantly share code, notes, and snippets.

@monogenea
Created October 7, 2019 18:13
Show Gist options
  • Save monogenea/900a03f709966ff8b8c9fb4a90d0526c to your computer and use it in GitHub Desktop.
Save monogenea/900a03f709966ff8b8c9fb4a90d0526c to your computer and use it in GitHub Desktop.
# Design recipe
myRec <- recipe(Y ~ ., data = trainSet) %>%
step_YeoJohnson(all_predictors(), -binVars) %>%
step_center(all_predictors(), -binVars) %>%
step_scale(all_predictors(), -binVars) %>%
step_meanimpute(missingVars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment