Learn R Programming

mlr (version 2.3)

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, addProperties, hasProperties, removeProperties, setProperties; Learner, makeLearner; getHyperPars; getParamSet; removeHyperPars; setHyperPars; setId; setPredictThreshold; showHyperPars

Other predict: asROCRPrediction; getProbabilities; plotROCRCurves; plotViperCharts; predict.WrappedModel; setPredictThreshold