각 모델의 적합값 보강하기
이번 연습 문제에서는 augment()를 사용해 모델 데이터를 보강하여, 가장 잘 적합된 모델 4개와 가장 적합이 떨어지는 모델 4개를 추가 탐색할 수 있도록 준비합니다.
이 연습은 강의의 일부입니다
Tidyverse로 배우는 Machine Learning
연습 안내
best_fit데이터 프레임을 사용해 보강된 데이터 프레임을 만들고,unnest()로 단순화하여best_augmented데이터 프레임을 구성하세요.worst_fit데이터 프레임을 사용해 보강된 데이터 프레임을 만들고,unnest()로 단순화하여worst_augmented데이터 프레임을 구성하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
best_augmented <- best_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___
worst_augmented <- worst_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___