Augment dei valori stimati di ogni modello
In questo esercizio preparerai i tuoi quattro modelli con il miglior e il peggior fit per ulteriori esplorazioni arricchendo i dati del modello con augment().
Questo esercizio fa parte del corso
Machine Learning nel tidyverse
Istruzioni dell'esercizio
- Crea il data frame
best_augmentedcostruendo i data frame aumentati e semplificandoli conunnest()usando il data framebest_fit. - Crea il data frame
worst_augmentedcostruendo i data frame aumentati e semplificandoli conunnest()usando il data frameworst_fit.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
best_augmented <- best_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___
worst_augmented <- worst_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___