PipeOpSample_B | R Documentation |
Impute features by sampling from non-missing data in approach B (independently during the training and prediction phase).
Input and output channels are inherited from PipeOpImpute
.
The parameters include inherited from ['PipeOpImpute'], as well as:
id
:: character(1)
Identifier of resulting object, default '"impute_sample_B"'.
mlr3pipelines::PipeOp
-> mlr3pipelines::PipeOpImpute
-> Sample_B_imputation
new()
PipeOpSample_B$new(id = "impute_sample_B", param_vals = list())
clone()
The objects of this class are cloneable with this method.
PipeOpSample_B$clone(deep = FALSE)
deep
Whether to make a deep clone.
{ graph <- PipeOpSample_B$new() %>>% mlr3learners::LearnerClassifGlmnet$new() graph_learner <- GraphLearner$new(graph) # Task with NA set.seed(1) resample(tsk("pima"), graph_learner, rsmp("cv", folds = 3)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.