# NOT RUN {
if (requireNamespace("mlr3pipelines", quietly = TRUE)) {
library("mlr3")
library("mlr3pipelines")
task = tsk("rats")
pipe = ppl(
"survbagging",
learner = lrn("surv.coxph"),
iterations = 5,
graph_learner = FALSE
)
pipe$train(task)
pipe$predict(task)
}
# }
Run the code above in your browser using DataLab