Learn R Programming

NADIA (version 0.4.2)

PipeOpMedian_B: PipeOpMedian_B

Description

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

Arguments

Input and Output Channels

Input and output channels are inherited from PipeOpImpute.

Parameters

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

  • id :: character(1)
    Identifier of resulting object, default `"impute_median_B"`.

Super classes

mlr3pipelines::PipeOp -> mlr3pipelines::PipeOpImpute -> Median_B_imputation

Methods

Inherited methods


Method new()

Usage

PipeOpMedian_B$new(id = "impute_median_B", param_vals = list())


Method clone()

The objects of this class are cloneable with this method.

Usage

PipeOpMedian_B$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# \donttest{

# Using debug learner for example purpose

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

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

Run the code above in your browser using DataLab