Conducts a Box-Cox transformation on numeric features. The lambda parameter
of the transformation is estimated during training and used for both training
and prediction transformation.
bestNormalize::boxcox() for details.
R6Class object inheriting from
PipeOpBoxCox$new(id = "boxcox", 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 transformed versions.
$state is a named
list with the
$state elements inherited from
as well as a list of class
boxcox for each column, which is transformed.
The parameters are the parameters inherited from
PipeOpTaskPreproc, as well as:
Whether to center and scale the transformed values to attempt a standard normal distribution. For details see
Tolerance parameter to identify if lambda parameter is equal to zero. For details see
Lower value for estimation of lambda parameter. For details see
Upper value for estimation of lambda parameter. For details see
Only methods inherited from
library("mlr3") task = tsk("iris") pop = po("boxcox") 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.