НачатьНачать бесплатно

Build cross-validated models

In this exercise, you will build a linear model predicting life_expectancy using all available features. You will do this for the train data of each cross-validation fold.

Это упражнение является частью курса

Machine Learning in the Tidyverse

Посмотреть курс

Инструкции к упражнению

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

Интерактивное практическое упражнение

Попробуйте выполнить это упражнение, дополнив этот пример кода.

# Build a model using the train data for each fold of the cross validation
cv_models_lm <- cv_data %>% 
  mutate(model = map(___, ~lm(formula = ___, data = ___)))
Редактировать и запускать код