CommencerCommencer gratuitement

Multiple feature engineering steps

The power of the recipes package is that you can include multiple preprocessing steps in a single recipe object. These steps will be carried out in the order they are entered with the step_*() functions.

In this exercise, you will build upon your feature engineering from the last exercise. In addition to removing correlated predictors, you will create a recipe object that also normalizes all numeric predictors in the telecommunications data.

The telecom_training and telecom_test datasets have been loaded into your session.

Cet exercice fait partie du cours

Modeling with tidymodels in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Specify a recipe object
telecom_norm_rec <- ___ %>% 
  # Remove correlated variables
  ___ %>% 
  # Normalize numeric predictors
  ___
Modifier et exécuter le code