R: Get response / truth from prediction object.

getPredictionResponse {mlr} | R Documentation

## Get response / truth from prediction object.

### Description

The following types are returned, depending on task type:

classif | factor
regr | numeric
se | numeric
cluster | integer
surv | numeric
multilabel | logical matrix, columns named with labels

### Usage

    getPredictionResponse(pred)

    getPredictionSE(pred)

    getPredictionTruth(pred)

### Arguments

`pred` | (Prediction) Prediction object.

### Value

See above.

### See Also

Other predict: `asROCRPrediction()`, `getPredictionProbabilities()`, `getPredictionTaskDesc()`, `predict.WrappedModel()`, `setPredictThreshold()`, `setPredictType()`

[Package mlr version 2.17.1 Index]