Learn R Programming

mlr (version 2.3)

tuneThreshold: Tune prediction threshold.

Description

Optimizes the threshold of prediction based on probabilities. Uses optimizeSubInts for 2class problems and cma_es for multiclass problems.

Usage

tuneThreshold(pred, measure, task, model, nsub = 20L, control = list())

Arguments

Value

[list]. A named list with with the following components: th is the optimal threshold, perf the performance value.

See Also

Other tune: ModelMultiplexer, makeModelMultiplexer; TuneControl, TuneControlCMAES, TuneControlGenSA, TuneControlGrid, TuneControlIrace, TuneControlRandom, makeTuneControlCMAES, makeTuneControlGenSA, makeTuneControlGrid, makeTuneControlIrace, makeTuneControlRandom; getTuneResult; makeModelMultiplexerParamSet; makeTuneWrapper; tuneParams