tests/testthat/test_surv_mboost.R

context("surv.mboost")

test_that("autotest", {
  learner = mlr_learners$get("surv.mboost")
  learner$param_set$values = insert_named(
    learner$param_set$values,
    list(center = TRUE, baselearner = "bols"))
  expect_learner(learner)
  # weights are fine for all predict types except 'distr'
  result = run_autotest(learner, exclude = "weights", check_replicable = FALSE)
  expect_true(result, info = result$error)
})
mlr3learners/mlr3learners.mboost documentation built on Aug. 9, 2020, 10:47 p.m.