tests/testthat/test_resample.R

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)
})
mlr-org/mlr3survival documentation built on Oct. 21, 2019, 7:42 p.m.