Nothing
context("resample")
test_that("PipeOp - Resample", {
skip_if_not_installed("rpart")
task = mlr_tasks$get("iris")
op1 = PipeOpScale$new()
lrn = mlr_learners$get("classif.rpart")
op2 = PipeOpLearner$new(learner = lrn)
pp = GraphLearner$new(op2)
resa = mlr_resamplings$get("cv")
resa$param_set$values$folds = 2L
rr = mlr3::resample(task, pp, resa)
assert_resample_result(rr)
expect_class(rr, "ResampleResult")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.