모델 살펴보기
이 연습은 강의의 일부입니다
R로 하는 Supervised Learning: 회귀
연습 안내
unemployment_model을 다시 출력해 보세요. 어떤 정보가 표시되나요?unemployment_model에summary()를 호출하세요. 회귀계수 값뿐 아니라 계수 추정의 표준 오차, R-squared 같은 적합도 지표도 확인할 수 있습니다.- 모델에
glance()를 호출해 성능 지표를 정돈된 데이터 프레임으로 확인하세요.summary()에서 본 정보가glance()의 어떤 열에 해당하는지 매칭해 볼 수 있나요? - 이제 모델에
wrapFTest()를 호출해 R-squared를 다시 확인해 보세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Print unemployment_model
___
# Call summary() on unemployment_model to get more details
___
# Call glance() on unemployment_model to see the details in a tidier form
___
# Call wrapFTest() on unemployment_model to see the most relevant details
___