शुरू करेंमुफ़्त में शुरू करें

Out-of-sample performance

In-sample performance provides insights about how well a model captures the data it is modeling. For predictive models, it's also important to check model performance on new, unseen data, the out-of-sample performance.

In this exercise, you will check the test set predictions of your model using MAE (mean absolute error).

Pre-loaded in your workspace again is the model that you built and used in the last exercises.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Machine Learning with Tree-Based Models in R

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Use model to predict the out-of-sample final_grade and add your predictions to chocolate_test using bind_cols().
  • Calculate the mean absolute error using a yardstick function.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Predict ratings on test set and add true grades
test_enriched <- predict(__, new_data = ___) %>%
    bind_cols(___)
    
# Compute the mean absolute error using one single function
___(___,
    ___,
    ___)
कोड संपादित करें और चलाएँ