Get startedGet started for free

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.

This exercise is part of the course

Feature Engineering in R

View Course

Exercise instructions

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

Hands-on interactive exercise

Have a go at this exercise by completing this sample 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)
Edit and Run Code