test_that("resample-step", {
task = mlr_tasks$get("rats")
learner = mlr_learners$get("surv.coxph")
resampling = rsmp("cv", folds = 3L)
rr = suppressWarnings(resample(task, learner, resampling))
expect_resample_result(rr)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.