From edf378722b11f8d646512b4fe3bb6d055bec58ee Mon Sep 17 00:00:00 2001 From: Nathan Layman Date: Sat, 15 Feb 2025 08:53:09 -0800 Subject: [PATCH] Start Explainable performance plot branch to fix #107. Create quarto report outline, fix _AWS target bug, switch to target projects workflow --- R/compute_preds.R | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 R/compute_preds.R diff --git a/R/compute_preds.R b/R/compute_preds.R new file mode 100644 index 0000000..09c81db --- /dev/null +++ b/R/compute_preds.R @@ -0,0 +1,14 @@ +# Function to perform tuning for each set of inner folds +compute_preds <- function(inner_resample, + xgb_mod, + xgb_recipe, + xgb_metrics, + outer_id) { + xgb_res <- tune_grid( + xgb_mod, + xgb_recipe, + resamples = inner_resample, + grid = xgb_grid, + metrics = xgb_metrics, + control = control_grid(save_pred = FALSE) + )