Scales the numeric data columns so their maximum absolute value is
Inf are ignored, and features that are constant 0
are not scaled.
R6Class object inheriting from
PipeOpScaleMaxAbs$new(id = "scalemaxabs", param_vals = list())
Identifier of resulting object, default
param_vals :: named
List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default
Input and output channels are inherited from
The output is the input
Task with scaled numeric features.
$state is a named
list with the
$state elements inherited from
as well as the maximum absolute values of each numeric feature.
The parameters are the parameters inherited from
PipeOpTaskPreproc, as well as:
The maximum absolute value for each column after transformation. Default is 1.
Only methods inherited from
library("mlr3") task = tsk("iris") pop = po("scalemaxabs") task$data() pop$train(list(task))[]$data() pop$state
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.