Description Usage Arguments Details Value Examples
step_scale_min_max
creates a specification of a recipe
step that will normalize numeric data between 0 and 1.
1 2 3 4 5 |
recipe |
A recipe object. The step will be added to the sequence of operations for this recipe. |
... |
One or more selector functions to choose which
variables are affected by the step. See [selections()]
for more details. For the |
role |
Not used by this step since no new variables are created. |
skip |
A logical. Should the step be skipped when the
recipe is baked by |
trained |
A logical to indicate if the quantities for preprocessing have been estimated. |
x |
A |
x |
A |
Scaling based on min and max is defined as:
(x - min(x)) / (max(x) - min(x))
The calculation is performed in bake.recipe
.
An updated version of recipe
with the new step
added to the sequence of existing steps (if any). For the
tidy
method, a tibble with columns terms
(the
selectors or variables selected) and value
(the
standard deviations).
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.