Applying step_dummy() to predictors
You are using the telecom_training data to predict canceled_service using avg_data_gb and contract as predictor variables.
| canceled_service | avg_data_gb | contract |
| yes | 7.78 | month_to_month |
| yes | 9.04 | month_to_month |
| yes | 5.08 | one_year |
| no | 8.05 | two_year |
In your feature engineering pipeline, you would like to create dummy variables from the contract column and leave avg_data_gb and canceled_service as is.
Which step_*() function from the options will correctly encode your recipe object?
यह अभ्यास पाठ्यक्रम का हिस्सा है
Modeling with tidymodels in R
इंटरैक्टिव व्यावहारिक अभ्यास
हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें
अभ्यास शुरू करें