MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Machine Learning in the Tidyverse

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# 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 = ___)))
Edit dan Jalankan Kode