Create a new default blueprint
This page contains the constructors for the default blueprints. They can be
extended if you want to add extra behavior on top of what the default
blueprints already do, but generally you will extend the non-default versions
of the constructors found in the documentation for new_blueprint()
.
new_default_formula_blueprint( mold, forge, intercept = FALSE, allow_novel_levels = FALSE, ptypes = NULL, formula = NULL, indicators = "traditional", composition = "tibble", terms = list(predictors = NULL, outcomes = NULL), ..., subclass = character() ) new_default_recipe_blueprint( mold, forge, intercept = FALSE, allow_novel_levels = FALSE, fresh = TRUE, composition = "tibble", ptypes = NULL, recipe = NULL, extra_role_ptypes = NULL, ..., subclass = character() ) new_default_xy_blueprint( mold, forge, intercept = FALSE, allow_novel_levels = FALSE, composition = "tibble", ptypes = NULL, ..., subclass = character() )
mold |
A named list with two elements, |
forge |
A named list with two elements, |
intercept |
A logical. Should an intercept be included in the
processed data? This information is used by the |
allow_novel_levels |
A logical. Should novel factor levels be allowed at
prediction time? This information is used by the |
ptypes |
Either |
formula |
Either |
indicators |
A single character string. Control how factors are expanded into dummy variable indicator columns. One of:
|
composition |
Either "tibble", "matrix", or "dgCMatrix" for the format of the processed predictors. If "matrix" or "dgCMatrix" are chosen, all of the predictors must be numeric after the preprocessing method has been applied; otherwise an error is thrown. |
terms |
A named list of two elements, |
... |
Name-value pairs for additional elements of blueprints that subclass this blueprint. |
subclass |
A character vector. The subclasses of this blueprint. |
fresh |
Should already trained operations be re-trained when |
recipe |
Either |
extra_role_ptypes |
A named list. The names are the unique non-standard
recipe roles (i.e. everything except |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.