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

Inspect model output

A hyperparameter is a value that influences the training process and can have a great impact on model performance. Available in your workspace is a regression tree model that was created using the following code:

model <- decision_tree(tree_depth = 1) %>%
  set_mode("regression") %>%
  set_engine("rpart") %>%
  fit(final_grade ~ ., data = chocolate_train)

As you can see, the tree_depth hyperparameter is set to 1, which means there's only one split in the tree.

What are the possible values for final_grade that will be predicted by this regression tree? Use the console to inspect model and find the answer.

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

Machine Learning with Tree-Based Models in R

ดูคอร์ส

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

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด