tuneThreshold: Tune prediction threshold.
Description
Optimizes the threshold of prediction based on
probabilities. Uses optimize
for 2class
problems and cma_es
for multiclass
problems.Usage
tuneThreshold(pred, measure, task, model,
control = list())
Value
[list
]. A named list with with the following
components: th
is the optimal threshold,
perf
the performance value.