8.53 Final evaluation
Collect tuned metrics using augment
augment(reg_tree_final_fit, new_data = carseats_train) %>%
rmse(truth = Sales, estimate = .pred)
## # A tibble: 1 × 3
## .metric .estimator .estimate
## <chr> <chr> <dbl>
## 1 rmse standard 1.38
augment(reg_tree_final_fit, new_data = carseats_test) %>%
rmse(truth = Sales, estimate = .pred)
## # A tibble: 1 × 3
## .metric .estimator .estimate
## <chr> <chr> <dbl>
## 1 rmse standard 2.04
Training RMSE: 1.38 Testing RMSE: 2.04 (still overfitting!)