as_prediction_data {mlr3} | R Documentation |
PredictionData
Description
Convert object to a PredictionData or a list of PredictionData.
Usage
as_prediction_data(x, task, row_ids = task$row_ids, check = TRUE, ...)
## S3 method for class 'Prediction'
as_prediction_data(x, task, row_ids = task$row_ids, check = TRUE, ...)
## S3 method for class 'PredictionData'
as_prediction_data(x, task, row_ids = task$row_ids, check = TRUE, ...)
## S3 method for class 'list'
as_prediction_data(
x,
task,
row_ids = task$row_ids,
check = TRUE,
...,
train_task
)
Arguments
x |
(any) |
task |
(Task). |
row_ids |
|
check |
( |
... |
(any) |
train_task |
(Task) |
Value
[Package mlr3 version 0.20.2 Index]