Linearly transforms numeric data columns so they are between lower and upper.
The formula for this is \(x' = a + x * b\),
where \(b\) is \((upper - lower) / (max(x) - min(x))\) and
\(a\) is \(-min(x) * b + lower\).
id :: character(1)
Identifier of resulting object, default "scalerange".
param_vals :: named list
List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default list().
The output is the input Task with scaled numeric features.
State
The $state is a named list with the $state elements inherited from PipeOpTaskPreproc,
as well as the two transformation parameters \(a\) and \(b\) for each numeric
feature.
Parameters
The parameters are the parameters inherited from PipeOpTaskPreproc, as well as:
lower :: numeric(1)
Target value of smallest item of input data. Default is 0.
upper :: numeric(1)
Target value of greatest item of input data. Default is 1.