PipeOpMode_B {NADIA}R Documentation

PipeOpMode_B

Description

Impute features by their mode in approach B (independently during the training and prediction phase).

Input and Output Channels

Input and output channels are inherited from PipeOpImpute.

Parameters

The parameters include inherited from ['PipeOpImpute'], as well as:

Super classes

mlr3pipelines::PipeOp -> mlr3pipelines::PipeOpImpute -> Mode_B_imputation

Methods

Public methods

Inherited methods

Method new()

Usage
PipeOpMode_B$new(id = "impute_mode_B", param_vals = list())

Method clone()

The objects of this class are cloneable with this method.

Usage
PipeOpMode_B$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

{
 # Using debug learner for example purpose

  graph <- PipeOpMode_B$new() %>>% LearnerClassifDebug$new()
  graph_learner <- GraphLearner$new(graph)

  # Task with NA
   set.seed(1)
  resample(tsk("pima"), graph_learner, rsmp("cv", folds = 3))
}

[Package NADIA version 0.4.2 Index]