สำรวจโมเดลที่ fit ดีที่สุดและแย่ที่สุด
มาสำรวจโมเดลที่ fit ดีที่สุดและแย่ที่สุด 4 โมเดล โดยเปรียบเทียบเส้นค่าที่พยากรณ์ได้กับค่าจริงกัน
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Machine Learning ใน 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")