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

Build cross-validated models

In this exercise, you will build logistic regression models for each fold in your cross-validation.

You will build this using the glm() function and by setting the family argument to "binomial".

Bu egzersiz

Machine Learning in the Tidyverse

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

Egzersiz talimatları

Build models predicting Attrition using all available features with the train data for each fold of the cross validation.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Build a model using the train data for each fold of the cross validation
cv_models_lr <- cv_data %>% 
  mutate(model = map(___, ~glm(formula = ___, 
                               data = ___, family = ___)))
Kodu Düzenle ve Çalıştır