始める無料で始める

当たりの良いモデルと悪いモデルを見比べましょう

当たりの良いモデル4つと悪いモデル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")
コードを編集して実行