library(mlr3learners.survival)
test_that("surv.nelson", {
learner = lrn("surv.nelson")
fun = survival::survfit
exclude = c("formula" # coerced internally
)
ParamTest = run_paramtest(learner, fun, exclude)
expect_true(ParamTest, info = paste0(
"\nMissing parameters:\n",
paste0("- '", ParamTest$missing, "'", collapse = "\n")
))
})
# test_that("surv.survfit_control", {
# learner = lrn("surv.survfit")
# fun = survival::boost_control # replace!
# exclude = c(
# "center", # deprecated
# )
#
# ParamTest = run_paramtest(learner, fun, exclude)
# expect_true(ParamTest, info = paste0("\nMissing parameters:\n",
# paste0("- '", ParamTest$missing,"'", collapse = "\n")))
# })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.