開始使用免費開始

探索你表現最好與最差的模型

透過將擬合線與實際值比較,來探索你表現最好與最差的 4 個模型。

本練習屬於課程

Tidyverse 的 Machine Learning

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# 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")
編輯並執行程式碼