| plot.LearnerSurv {mlr3proba} | R Documentation |
LearnerSurv objectsWrapper around predict.LearnerSurv and plot.VectorDistribution.
## S3 method for class 'LearnerSurv'
plot(
x,
task,
fun = c("survival", "pdf", "cdf", "quantile", "hazard", "cumhazard"),
row_ids = NULL,
newdata,
...
)
x |
|
task |
(TaskSurv) |
fun |
( |
row_ids |
( |
newdata |
( |
... |
Additional arguments passed to |
## Not run:
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))
## End(Not run)