mlr_pipeops_explicit_pta | R Documentation |
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.
R6Class object inheriting from PipeOpTaskPreproc
/PipeOp
.
PipeOpExplicitPta$new(id = "reweighing", param_vals = list())
id
(character(1)
).
param_vals
(list()
)
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.
The $state
is a named list
with the $state
elements inherited from PipeOpTaskPreproc.
The PipeOp does not have any hyperparameters.
Copies the existing pta column to a new column.
Only fields inherited from PipeOpTaskPreproc/PipeOp
.
Methods inherited from PipeOpTaskPreproc/PipeOp.
mlr3pipelines::PipeOp
-> mlr3pipelines::PipeOpTaskPreproc
-> PipeOpExplicitPta
new()
Creates a new instance of this [R6][R6::R6Class][PipeOp] R6 class.
PipeOpExplicitPta$new(id = "explicit_pta", param_vals = list())
id
character
The PipeOps identifier in the PipeOps library.
param_vals
list
The parameter values to be set. See Parameters
.
clone()
The objects of this class are cloneable with this method.
PipeOpExplicitPta$clone(deep = FALSE)
deep
Whether to make a deep clone.
https://mlr3book.mlr-org.com/list-pipeops.html
Other PipeOps:
mlr_pipeops_equalized_odds
,
mlr_pipeops_reweighing
library("mlr3")
library("mlr3pipelines")
epta = po("explicit_pta")
new = epta$train(list(tsk("adult_train")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.