mlr_graphs_distrcompositor | R Documentation |
Wrapper around PipeOpDistrCompositor to simplify Graph creation.
pipeline_distrcompositor( learner, estimator = c("kaplan", "nelson"), form = c("aft", "ph", "po"), overwrite = FALSE, graph_learner = FALSE ) distrcompositor(...)
learner |
|
estimator |
|
form |
|
overwrite |
|
graph_learner |
|
... |
|
mlr3pipelines::Graph or mlr3pipelines::GraphLearner
Other pipelines:
mlr_graphs_crankcompositor
,
mlr_graphs_probregrcompositor
,
mlr_graphs_survaverager
,
mlr_graphs_survbagging
,
mlr_graphs_survtoregr
## Not run: if (requireNamespace("mlr3pipelines", quietly = TRUE) && requireNamespace("rpart", quietly = TRUE)) { library("mlr3") library("mlr3pipelines") task = tsk("rats") pipe = ppl( "distrcompositor", learner = lrn("surv.rpart"), estimator = "kaplan", form = "ph" ) pipe$train(task) pipe$predict(task) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.