CommencerCommencer gratuitement

Assessing model performance using all available predictors

In order to assess the performance of your reduced model, it is important to set a benchmark. Measure your full model's performance to understand the trade-off of a reduced model. Recall the variable importance chart that you created in an earlier exercise.

Bar chart of variable importance.

Thetrain and test splits together with your user-defined function class_evaluate() are loaded in your environment. Your fitted model has been saved as fit_full. Thetrain and test splits together with your user-defined function class_evaluate() are loaded in your environment.

Cet exercice fait partie du cours

Feature Engineering in R

Afficher le cours

Instructions

  • Create an augmented object from the fitted full model.
  • Assess model performance using class_evaluate.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create an augmented object from the fitted full model
aug_full <-
  fit_full %>%
  ___(test)

# Assess model performance using class_evaluate
aug_full %>% ___(truth = ___, 
               estimate = .pred_class,
               .pred_Yes)
Modifier et exécuter le code