Skip to content

Commit

Permalink
include postprocessor in tune_args.workflow() output (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch authored Nov 15, 2024
1 parent f9d081a commit cd34921
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ tune_args.workflow <- function(object, ...) {
param_data <- vctrs::vec_rbind(param_data, recipe_param_data)
}

if (has_postprocessor_tailor(object)) {
tailor <- extract_postprocessor(object)
tailor_param_data <- generics::tune_args(tailor)
param_data <- vctrs::vec_rbind(param_data, tailor_param_data)
}

param_data
}

Expand Down

0 comments on commit cd34921

Please sign in to comment.