context("resampling")
test_that("train, predict, score", {
task = tsk("lung")
learner = lrn("surv.rpart")
perf = learner$train(task)$predict(task)$score()
expect_number(perf)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.