Learn R Programming

mlr (version 1.1-18)

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())

Arguments

Value

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