Specify predictors, outcome, and metadata by building a recipe.

buildRecipe(train_data, use_pca = FALSE, pca_threshold = 0.95)

Arguments

train_data

The part of the feature data designated for ML model training. This can be the output of rsample::training(splitMLInputTibble(ml_input_tibble)).

use_pca

arrow::bool Set to TRUE to use PCA instead of all features.

pca_threshold

pillar::num The proportion of total variance for which the principle components account

Value

A recipe object