Learn R Programming

mlr (version 2.19.0)

getPredictionResponse: Get response / truth from prediction object.

Description

The following types are returned, depending on task type:

classiffactor
regrnumeric
senumeric
clusterinteger
survnumeric
multilabellogical matrix, columns named with labels

Usage

getPredictionResponse(pred)

getPredictionSE(pred)

getPredictionTruth(pred)

Value

See above.

Arguments

pred

(Prediction)
Prediction object.

See Also

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