Turns the column with column role 'pta' into an explicit separate column prefixed with "..internal_pta". This keeps it from getting changed or adapted by subsequent pipelines that operate on the feature pta.
Format
R6Class object inheriting from PipeOpTaskPreproc
/PipeOp
.
Construction
id
(character(1)
).param_vals
(list()
)
Input and Output Channels
Input and output channels are inherited from PipeOpTaskPreproc. Instead of a Task, a TaskClassif is used as input and output during training and prediction.
The output during training is the input Task with added weights column according to target class. The output during prediction is the unchanged input.
State
The $state
is a named list
with the $state
elements inherited from PipeOpTaskPreproc.
Fields
Only fields inherited from PipeOpTaskPreproc/PipeOp
.
Methods
Methods inherited from PipeOpTaskPreproc/PipeOp.
See also
https://mlr3book.mlr-org.com/list-pipeops.html
Other PipeOps:
mlr_pipeops_equalized_odds
,
mlr_pipeops_reweighing
Super classes
mlr3pipelines::PipeOp
-> mlr3pipelines::PipeOpTaskPreproc
-> PipeOpExplicitPta
Methods
Method new()
Creates a new instance of this [R6][R6::R6Class][PipeOp] R6 class.
Usage
PipeOpExplicitPta$new(id = "explicit_pta", param_vals = list())