plot.LearnerSurv | R Documentation |
LearnerSurv
objectsWrapper around predict.LearnerSurv
and plot.Matdist
.
## S3 method for class 'LearnerSurv' plot( x, task, fun = c("survival", "pdf", "cdf", "quantile", "hazard", "cumhazard"), row_ids = NULL, newdata, ... )
x |
(LearnerSurv) |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.