Normalizes the data row-wise. This is a natural generalization of the "sign" function to higher dimensions.
R6Class object inheriting from
PipeOpSpatialSign$new(id = "spatialsign", 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 all affected numeric features replaced by their normalized versions.
$state is a named
list with the
$state elements inherited from
The parameters are the parameters inherited from
PipeOpTaskPreproc, as well as:
Length to scale rows to. Default is 1.
Norm to use. Rows are scaled to
sum(x^norm)^(1/norm) == length for finite
norm, or to
max(abs(x)) == length
Inf. Default is 2.
Only methods inherited from
library("mlr3") task = tsk("iris") task$data() pop = po("spatialsign") pop$train(list(task))[]$data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.