Abstract input transformation class.
An input transformation can be used within a Surrogate to perform a transformation of the feature variables.
label
(character(1)
)
Label for this object.
man
(character(1)
)
String in the format [pkg]::[topic]
pointing to a manual page for this object.
packages
(character()
)
Set of required packages.
A warning is signaled if at least one of the packages is not installed, but loaded (not attached) later on-demand via requireNamespace()
.
state
(named list()
| NULL
)
List of meta information regarding the parameters and their state.
search_space
(paradox::ParamSet)
Search space.
cols_x
(paradox::ParamSet)
Column ids of feature variables that should be transformed.
new()
Creates a new instance of this R6 class.
InputTrafo$new(label = NA_character_, man = NA_character_)
label
(character(1)
)
Label for this object.
man
(character(1)
)
String in the format [pkg]::[topic]
pointing to a manual page for this object.
update()
Learn the transformation based on observed data and update parameters in $state
.
Must be implemented by subclasses.
InputTrafo$update(xdt)
xdt
(data.table::data.table()
)
Data. One row per observation with at least columns $cols_x
.
transform()
Perform the transformation. Must be implemented by subclasses.
InputTrafo$transform(xdt)
xdt
(data.table::data.table()
)
Data. One row per observation with at least columns $cols_x
.
data.table::data.table()
with the transformation applied to the columns $cols_x
(if applicable) or a subset thereof.
(character(1)
).
(character()
).
clone()
The objects of this class are cloneable with this method.
InputTrafo$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Input Transformation:
InputTrafoUnitcube
,
mlr_input_trafos