Collecting predictions and creating custom metrics
Using the last_fit() modeling workflow also saves time in collecting model predictions. Instead of manually creating a tibble of model results, there are helper functions that extract this information automatically.
In this exercise, you will use your trained model, telecom_last_fit, to create a tibble of model results on the test dataset as well as calculate custom performance metrics.
Your trained model, telecom_last_fit, has been loaded into this session.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Modeling with tidymodels in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Collect predictions
last_fit_results <- telecom_last_fit %>%
___
# View results
last_fit_results