PipeOpVIM_kNN {NADIA}R Documentation

PipeOpVIM_kNN

Description

Implements KNN methods as mlr3 pipeline, more about VIM_KNN autotune_VIM_kNN.

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 -> VIM_kNN_imputation

Methods

Public methods

Inherited methods

Method new()

Usage
PipeOpVIM_kNN$new(
  id = "impute_VIM_kNN_B",
  k = 5,
  numFun = median,
  catFun = VIM::maxCat,
  out_file = NULL
)

Method clone()

The objects of this class are cloneable with this method.

Usage
PipeOpVIM_kNN$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

{
  graph <- PipeOpVIM_kNN$new() %>>% mlr3learners::LearnerClassifGlmnet$new()
  graph_learner <- GraphLearner$new(graph)

  # Task with NA

  resample(tsk("pima"), graph_learner, rsmp("cv", folds = 3))
}

[Package NADIA version 0.4.2 Index]