mlr_graphs_survaverager | R Documentation |
Wrapper around PipeOpSurvAvg to simplify Graph creation.
pipeline_survaverager(learners, param_vals = list(), graph_learner = FALSE)
learners |
|
param_vals |
|
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("survaverager") ppl("survaverager")
Other pipelines:
mlr_graphs_crankcompositor
,
mlr_graphs_distrcompositor
,
mlr_graphs_probregr
,
mlr_graphs_responsecompositor
,
mlr_graphs_survbagging
,
mlr_graphs_survtoclassif_IPCW
,
mlr_graphs_survtoclassif_disctime
,
mlr_graphs_survtoregr_pem
## Not run:
library(mlr3)
library(mlr3pipelines)
task = tsk("rats")
pipe = ppl(
"survaverager",
learners = lrns(c("surv.kaplan", "surv.coxph")),
param_vals = list(weights = c(0.1, 0.9)),
graph_learner = FALSE
)
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.