BaşlayınÜcretsiz Başlayın

Create a workflow

As you keep investigating attrition, it is natural to build a model that takes all the available predictors, hopping to get a highly accurate prediction. Let's see how it goes.

Bu egzersiz

Feature Engineering in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Create a recipe to predict Attrition based on all features.
  • Bundle the model and recipe in a workflow.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

lr_model <- logistic_reg()

# Create a recipe to predict Attrition based on all features
lr_recipe <- 
  recipe(___, 
         data = train) 

# Bundle the model and recipe in a workflow
lr_workflow <- 
  workflow() %>%
  add_model(lr_model) %>%
  ___(lr_recipe)

lr_workflow
Kodu Düzenle ve Çalıştır