LoslegenKostenlos loslegen

Explore your best and worst fitting models

Let's explore your four best and worst fitting models by comparing the fitted lines with the actual values.

Diese Übung ist Teil des Kurses

Machine Learning in the Tidyverse

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Compare the predicted values with the actual values of life expectancy for the top 4 best fitting models
best_augmented %>% 
  ggplot(aes(x = year)) +
  geom_point(aes(y = ___)) + 
  geom_line(aes(y = ___), color = "red") +
  facet_wrap(~country, scales = "free_y")
Code bearbeiten und ausführen