Session Ready
Exercise

Preparing for evaluation

In order to measure the validate performance of your models you need compare the predicted values of life_expectancy for the observations from validate set to the actual values recorded. Here you will prepare both of these vectors for each partition.

Instructions
100 XP
  • Extract the actual life_expectancy from the validate dataframes and store these in the column validate_actual.
  • Predict the life_expectancy for each validate partition using the map2() and predict() functions in the column validate_predicted.