Aan de slagGa gratis aan de slag

Augment the fitted values of each model

In this exercise you will prepare your four best and worst fitting models for further exploration by augmenting your model data with augment().

Deze oefening maakt deel uit van de cursus

Machine Learning in the Tidyverse

Cursus bekijken

Oefeninstructies

  • Build the best_augmented data frame by building augmented data frames and simplifying them with unnest() using the best_fit data frame.
  • Build the worst_augmented data frame by building augmented data frames and simplifying them with unnest() using the worst_fit data frame.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

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
  ___
Code bewerken en uitvoeren