Construct a single row summary of the classifier.
Usage
ebc_tidy(
detected,
true,
all,
m = length(all),
measures = c("TPR", "FPR", "FDR", "ACC", "F1")
)
Arguments
- detected
Vector of elements that are detected.
- true
Vector of element that are supposed to be detected.
- all
Vector of all elements.
- m
Total number of elements.
- measures
Desired measures of performance.
Value
A single-row data.frame with one column per
element in measures.
Details
See ebc_allmeasures for the available measures and
their descriptions.
Examples
ebc_tidy(detected = c("A", "C", "D"), true = c("A", "B", "C"),
all = LETTERS[1:6], measures = c("ACC", "FDR"))
#> ACC FDR
#> 1 0.6666667 0.3333333