From c0f38f0b05ad71dea4a3d4f4f4a1ff19edf673e3 Mon Sep 17 00:00:00 2001 From: simonpcouch Date: Wed, 16 Oct 2024 10:37:04 -0700 Subject: [PATCH] extract parameter set from postprocessor --- R/extract.R | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/R/extract.R b/R/extract.R index 0b027038..99ab341e 100644 --- a/R/extract.R +++ b/R/extract.R @@ -225,6 +225,13 @@ extract_parameter_set_dials.workflow <- function(x, ...) { param_data <- vctrs::vec_rbind(param_data, recipe_param_data) } + if (has_postprocessor_tailor(x)) { + tailor <- extract_postprocessor(x) + tailor_param_data <- extract_parameter_set_dials(tailor) + + param_data <- vctrs::vec_rbind(param_data, tailor_param_data) + } + dials::parameters_constr( param_data$name, param_data$id,