Learn R Programming

evabic (version 0.1.4)

ebc_tidy: Tidy output for measures

Description

Construct a single row summary of the classifier.

Usage

ebc_tidy(
  detected,
  true,
  all,
  m = length(all),
  measures = c("TPR", "FPR", "FDR", "ACC", "F1")
)

Value

A single-row data.frame with one column per element in measures.

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.

Details

See ebc_allmeasures for the available measures and their descriptions.

See Also

ebc_TP, ebc_TPR, ebc_allmeasures

Examples

Run this code
ebc_tidy(detected = c("A", "C", "D"), true = c("A", "B", "C"),
         all = LETTERS[1:6], measures = c("ACC", "FDR"))

Run the code above in your browser using DataLab