เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Fitting, augmenting, and assessing

You are ready to fit the workflow to the training data and assess its performance using the testing split.

The embed package, the lr_workflow_glm object, and the corresponding test and train splits are in your workspace.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Feature Engineering in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Fit the workflow to the training set.
  • Augment the fit using the test split.
  • Assess the model.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Fit the workflow to the training set
lr_fit_glm <- lr_workflow_glm %>%
  ___(train)

# Augment the fit using the test split
lr_aug_glm <- lr_fit_glm %>%
  ___(test)

# Assess the model
glm_metrics <- lr_aug_glm %>%
  class_evaluate(truth = ___,
                 estimate = .pred_class,
                 .pred_Yes)

glm_metrics
แก้ไขและรันโค้ด