tests/testthat/test_resample.R

context("resample")

test_that("resample-step", {
  task = mlr_tasks$get("rats")
  learner = mlr_learners$get("surv.coxph")
  resampling = rsmp("cv", folds = 3)

  rr = suppressWarnings(resample(task, learner, resampling))
  expect_resample_result(rr)
})

Try the mlr3proba package in your browser

Any scripts or data that you put into this service are public.

mlr3proba documentation built on April 25, 2022, 5:07 p.m.