Warning in construct_noise(roadmap = roadmap, default_regression_noise =
synth_spec[["default_regression_noise"]], : No noise specified, using default
noise() object.
Warning in construct_tuners(roadmap = roadmap, default_regression_tuner =
synth_spec[["default_regression_tuner"]], : No tuners specified, using default
tuner
Warning in construct_extractors(roadmap = roadmap, default_extractor =
synth_spec[["default_extractor"]], : No extractors specified, using default
extractor.
Some variable(s) have no non-default visit sequence method specified: TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE
As expected, the default recipe objects automatically handle the availability of start_data variables and previously synthesized variables.
These default recipe objects can be modified using functions of the form recipes::step_* from library(recipes). To specify specific steps for particular conditional synthesis steps, users can define functions that apply these steps and pass these new functions as arguments to synth_spec. Here’s an example:
#' #' Example recipe-modifying step for centering + scaling all numeric predictors#' #' @param rec recipes::recipe#' @returns recipes::recipe #' step1 <-function(rec) {return( rec %>% recipes::step_center(recipes::all_predictors(), -tidyselect::where(is.factor)) %>% recipes::step_scale(recipes::all_predictors(),-tidyselect::where(is.factor)) ) }
Some recipe transformations are invertible. The synth_spec argument invert_transformations determines whether or not transformations are inverted upon use.