mlr3.holdout_task | R Documentation |
This CallbackResample predicts on an additional holdout task after training.
task |
(Task) |
task = tsk("pima")
task_holdout = task$clone()
learner = lrn("classif.rpart")
resampling = rsmp("cv", folds = 3)
splits = partition(task, 0.7)
task$filter(splits$train)
task_holdout$filter(splits$test)
callback = clbk("mlr3.holdout_task", task = task_holdout)
rr = resample(task, learner, resampling = resampling, callbacks = callback)
rr$data_extra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.