1. Learn
  2. /
  3. Courses
  4. /
  5. Machine Learning in the Tidyverse

Exercise

Tidy up the coefficients of your models

In this exercise you will leverage the list column workflow along with the tidy() function from broom to extract and explore the coefficients for the 77 models you built.

Remember the gap_models data frame contains a model predicting life expectancy by year for 77 countries.

Instructions

100 XP
  • Use tidy() to append a column (coef) containing coefficient statistics for each model to the gap_models data frame and save it as model_coef_nested.
  • Simplify this data frame using unnest() to extract these coefficients in your data frame.
  • Explore the coefficient estimates for the year feature across your 77 models by plotting a histogram of their values.