mlr3 (version 0.1.0-9000)

Prediction: Abstract Prediction Object

Description

This is the abstract base class for task objects like PredictionClassif or PredictionRegr.

Prediction objects store the following information:

  1. The row ids of the test set

  2. The corresponding true (observed) response.

  3. The corresponding predicted response.

  4. Additional predictions based on the class and predict_type. E.g., the class probabilities for classification or the estimated standard error for regression.

Arguments

Format

R6::R6Class object.

Construction

This object is constructed via a derived classes, e.g. PredictionClassif or PredictionRegr.

Fields

  • row_ids :: (integer() | character()) Vector of row ids for which predictions are stored.

  • truth :: any True (observed) outcome.

  • task_type :: character(1) Stores the type of the Task.

  • predict_types :: character() Vector of predict types this object stores.

  • missing :: logical() Returns row_ids for which the predictions are missing or incomplete.

Methods

S3 Methods

See Also

Other Prediction: PredictionClassif, PredictionRegr