mlr_graphs_responsecompositor | R Documentation |
Wrapper around PipeOpResponseCompositor to simplify Graph creation.
pipeline_responsecompositor(
learner,
method = "rmst",
tau = NULL,
add_crank = FALSE,
overwrite = FALSE,
graph_learner = FALSE
)
learner |
|
method |
( |
tau |
( |
add_crank |
( |
overwrite |
( |
graph_learner |
( |
mlr3pipelines::Graph or mlr3pipelines::GraphLearner
This Graph can be instantiated via the dictionary mlr_graphs or with the associated sugar function ppl():
mlr_graphs$get("responsecompositor") ppl("responsecompositor")
Other pipelines:
mlr_graphs_crankcompositor
,
mlr_graphs_distrcompositor
,
mlr_graphs_probregr
,
mlr_graphs_survaverager
,
mlr_graphs_survbagging
,
mlr_graphs_survtoclassif_IPCW
,
mlr_graphs_survtoclassif_disctime
,
mlr_graphs_survtoregr_pem
## Not run:
library(mlr3)
library(mlr3pipelines)
task = tsk("lung")
part = partition(task)
# add survival time prediction type to the predictions of a Cox model
grlrn = ppl(
"responsecompositor",
learner = lrn("surv.coxph"),
method = "rmst",
overwrite = TRUE,
graph_learner = TRUE
)
grlrn$train(task, part$train)
grlrn$predict(task, part$test)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.