ComenzarEmpieza gratis

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 ejercicio forma parte del curso

Feature Engineering in R

Ver curso

Instrucciones del ejercicio

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

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# 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 y ejecutar código