as_prediction_data: PredictionData

View source: R/as_prediction_data.R

as_prediction_dataR 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)
Object to convert.

task

(Task).

row_ids

integer()
Row indices.

check

(logical(1))
Perform argument checks and type conversions?

...

(any)
Additional arguments.

train_task

(Task)
Task used for training the learner.

Value

PredictionData.


mlr3 documentation built on Oct. 18, 2024, 5:11 p.m.