ComeçarComece de graça

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.

Este exercício faz parte do curso

Feature Engineering in R

Ver curso

Instruções do exercício

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

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# 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)
Editar e executar o código