가장 잘 맞는 모델과 가장 잘 맞지 않는 모델 탐색
가장 잘 맞는 모델 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")