检查拟合最好和最差的模型
通过将拟合直线与实际值对比,来探索拟合效果最好的 4 个模型和最差的 4 个模型。
本练习是课程的一部分
Tidyverse 中的机器学习
交互式实操练习
通过完成这段示例代码来试试这个练习。
# 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")