test_that("autotest ph", {
learner = lrn("surv.gamboost", baselearner = "bols", family = "coxph", center = TRUE)
expect_learner(learner)
# weights are fine for all predict types except 'distr'
result = run_autotest(learner, exclude = "weights|utf8_feature_names", check_replicable = FALSE)
expect_true(result, info = result$error)
})
test_that("autotest aft", {
learner = lrn("surv.gamboost", family = "loglog", baselearner = "bols", center = TRUE)
expect_learner(learner)
# weights are fine for all predict types except 'distr'
result = run_autotest(learner, exclude = "weights|utf8_feature_names", check_replicable = FALSE)
expect_true(result, info = result$error)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.