Description Usage Arguments Value Methods (by class) References See Also Examples
Transform a prediction matrix with scores/probabilities in a mlresult applying a fixed threshold. A global fixed threshold can be used of all labels or different fixed thresholds, one for each label.
1 2 3 4 5 6 7 | fixed_threshold(prediction, threshold = 0.5, probability = FALSE)
## Default S3 method:
fixed_threshold(prediction, threshold = 0.5, probability = FALSE)
## S3 method for class 'mlresult'
fixed_threshold(prediction, threshold = 0.5, probability = FALSE)
|
prediction |
A matrix with scores/probabilities where the columns are the labels and the rows are the instances. |
threshold |
A single value between 0 and 1 or a list with threshold values contained one value per label. |
probability |
A logical value. If |
A mlresult object.
default
: Fixed Threshold for matrix or data.frame
mlresult
: Fixed Threshold for mlresult
Al-Otaibi, R., Flach, P., & Kull, M. (2014). Multi-label Classification: A Comparative Study on Threshold Selection Methods. In First International Workshop on Learning over Multiple Contexts (LMCE) at ECML-PKDD 2014.
Other threshold:
lcard_threshold()
,
mcut_threshold()
,
pcut_threshold()
,
rcut_threshold()
,
scut_threshold()
,
subset_correction()
1 2 3 4 5 6 7 8 9 10 11 12 |
Loading required package: mldr
lbl1 lb2 lb3
[1,] 0 0 1
[2,] 0 1 1
[3,] 0 1 1
lbl1 lb2 lb3
[1,] 0 0 1
[2,] 1 1 0
[3,] 0 1 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.