Learn R Programming

mlr (version 2.7)

setPredictType: Set the type of predictions the learner should return.

Description

Possible prediction types are: Classification: Labels or class probabilities (including labels). Regression: Numeric or response or standard errors (including numeric response). Survival: Linear predictor or survival probability.

For complex wrappers the predict type is usually also passed down the encapsulated learner in a recursive fashion.

Usage

setPredictType(learner, predict.type)

Arguments

Value

[Learner].

See Also

Other learner: LearnerProperties, getClassWeightParam, getHyperPars, getParamSet, makeLearner, removeHyperPars, setHyperPars, setId, setPredictThreshold

Other predict: asROCRPrediction, generateROCRCurvesData, getPredictionProbabilities, getPredictionResponse, plotROCRCurvesGGVIS, plotROCRCurves, plotViperCharts, predict.WrappedModel, setPredictThreshold