Wrapper around predict.LearnerSurv
and plot.Matdist
.
Arguments
- x
- task
(TaskSurv)
- fun
(
character
)
Passed todistr6::plot.Matdist
- row_ids
(
integer()
)
Passed toLearner$predict
- newdata
(
data.frame()
)
If not missingLearner$predict_newdata
is called instead ofLearner$predict
.- ...
Additional arguments passed to
distr6::plot.Matdist
Examples
if (FALSE) {
library(mlr3)
task = tsk("rats")
# Prediction Error Curves for prediction object
learn = lrn("surv.coxph")
learn$train(task)
plot(learn, task, "survival", ind = 10)
plot(learn, task, "survival", row_ids = 1:5)
plot(learn, task, "survival", newdata = task$data()[1:5, ])
plot(learn, task, "survival", newdata = task$data()[1:5, ], ylim = c(0, 1))
}