PredictionData: Convert to PredictionData

Description Usage Arguments

Description

Objects of type PredictionData serve as a intermediate representation for objects of type Prediction. It is an internal data structure, implemented to optimize runtime and solve some issues emerging while serializing R6 objects. End-users typically do not need to worry about the details, package developers are advised to continue reading for some technical information.

Unlike most other mlr3 objects, PredictionData relies on the S3 class system. The following operations must be supported to extend mlr3 for new task types:

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
check_prediction_data(pdata)

is_missing_prediction_data(pdata)

## S3 method for class 'PredictionDataClassif'
check_prediction_data(pdata)

## S3 method for class 'PredictionDataClassif'
is_missing_prediction_data(pdata)

## S3 method for class 'PredictionDataClassif'
c(..., keep_duplicates = TRUE)

## S3 method for class 'PredictionDataRegr'
check_prediction_data(pdata)

## S3 method for class 'PredictionDataRegr'
is_missing_prediction_data(pdata)

## S3 method for class 'PredictionDataRegr'
c(..., keep_duplicates = TRUE)

Arguments

pdata

(PredictionData)
Named list inheriting from "PredictionData".

...

(one or more PredictionData objects).

keep_duplicates

(logical(1)) If TRUE, the combined PredictionData object is filtered for duplicated row ids (starting from last).


mlr3 documentation built on Aug. 6, 2021, 1:07 a.m.