Description Format Construction Fields Examples
This object stores the predictions returned by a learner of class LearnerSurv.
The task_type
is set to "surv"
.
R6::R6Class object inheriting from mlr3::Prediction.
1 2 | p = PredictionSurv$new(task = NULL, row_ids = task$row_ids,
truth = task$truth(), risk = NULL)
|
task
:: TaskSurv
Task, used to extract defaults for row_ids
and truth
.
row_ids
:: (integer()
| character()
)
Row ids of the task. Per default, these are extracted from the task
.
truth
:: survival::Surv()
Observed survival times. Per default, these are extracted from the task
.
risk
:: numeric()
Vector of risk scores. One element for each observation in the test set.
The higher the risk, the more likely is an event.
Used in measures like mlr_measures_surv.harrells_c.
See mlr3::Prediction.
The field task_type
is set to "surv"
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.