8.66 Evaluate the model

autoplot(xgb_rs)

Show best models

show_best(xgb_rs)
## Warning: No value of `metric` was given; metric 'rmse' will be used.
## # A tibble: 5 × 10
##    mtry min_n tree_depth learn_rate .metric .estimator  mean     n std_err
##   <int> <int>      <int>      <dbl> <chr>   <chr>      <dbl> <int>   <dbl>
## 1     4     5          2    0.0394  rmse    standard    1.35   101  0.0122
## 2     5    34         15    0.00903 rmse    standard    1.36     4  0.0330
## 3    12    29          1    0.170   rmse    standard    1.38     3  0.0262
## 4     2    38          6    0.0554  rmse    standard    1.39     3  0.0308
## 5     2    34          5    0.00755 rmse    standard    1.40     3  0.0252
## # ℹ 1 more variable: .config <chr>

Select best model

select_best(xgb_rs, "rmse")
## # A tibble: 1 × 5
##    mtry min_n tree_depth learn_rate .config              
##   <int> <int>      <int>      <dbl> <chr>                
## 1     4     5          2     0.0394 Preprocessor1_Model28