context("resampling")
test_that("resampling works", {
task = tsk("lung")
learner = lrn("surv.rpart")
rr = resample(task, learner, mlr_resamplings$get("cv"))
expect_resample_result(rr)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.