Learn R Programming

mlr (version 2.2)

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: getHyperPars; getParamSet; removeHyperPars; setHyperPars; setId; showHyperPars

Other predict: getProbabilities; predict.WrappedModel