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

Specifying a model and recipe

Now that you have created your training and test datasets, the next step is to specify your model and feature engineering pipeline. These are the two components that are needed to create a workflow object for the model training process.

In this exercise, you will define a decision tree model object with decision_tree() and a recipe specification with the recipe() function.

Your loans_training data has been loaded into this session.

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

Modeling with tidymodels in R

ดูคอร์ส

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

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

dt_model <- ___ %>% 
  # Specify the engine
  ___ %>% 
  # Specify the mode
  ___
แก้ไขและรันโค้ด