tuneThreshold {mlr} | R Documentation |
Tune prediction threshold.
Description
Optimizes the threshold of predictions based on probabilities. Works for classification and multilabel tasks. Uses BBmisc::optimizeSubInts for normal binary class problems and GenSA::GenSA for multiclass and multilabel problems.
Usage
tuneThreshold(pred, measure, task, model, nsub = 20L, control = list())
Arguments
pred |
(Prediction) |
measure |
(Measure) |
task |
(Task) |
model |
(WrappedModel) |
nsub |
( |
control |
(list) |
Value
(list). A named list with with the following components:
th
is the optimal threshold, perf
the performance value.
See Also
Other tune:
TuneControl
,
getNestedTuneResultsOptPathDf()
,
getNestedTuneResultsX()
,
getResamplingIndices()
,
getTuneResult()
,
makeModelMultiplexer()
,
makeModelMultiplexerParamSet()
,
makeTuneControlCMAES()
,
makeTuneControlDesign()
,
makeTuneControlGenSA()
,
makeTuneControlGrid()
,
makeTuneControlIrace()
,
makeTuneControlMBO()
,
makeTuneControlRandom()
,
makeTuneWrapper()
,
tuneParams()