शुरू करेंमुफ़्त में शुरू करें

Compare to a single classifier

You learned that boosted trees are among the best machine learning algorithms available. To underpin that, you will now compare the AUC of a boosted model to a simple decision tree classifier.

In this exercise, you will use the whole machine-learning pipeline from specification to evaluation.

The training data customers_train is still pre-loaded.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Machine Learning with Tree-Based Models in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

set.seed(100)

# Specify, fit, predict, and combine with training data
predictions <- boost_tree() %>%
  set_mode("___") %>%
  set_engine("___") %>% 
  fit(still_customer ~ ., data = ___) %>%
  predict(new_data = ___, type = "___") %>% 
  bind_cols(___)

# Calculate AUC
roc_auc(___, 
        truth = ___, 
        estimate = ___)
कोड संपादित करें और चलाएँ