ÎncepețiÎncepe gratuit

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.

Acest exercițiu face parte din cursul

Feature Engineering in R

Vezi cursul

Instrucțiuni pentru exercițiu

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

Exercițiu interactiv practic

Încearcă acest exercițiu completând acest cod de exemplu.

# 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)
Editează și rulează codul