bacc: Balanced Accuracy

View source: R/mod_error.R

baccR Documentation

Balanced Accuracy

Description

Balanced Accuracy of a binary classifier

Usage

bacc(true, predicted, harmonize = FALSE, verbose = TRUE)

Arguments

true

True labels

predicted

Estimated labels

harmonize

Logical: passed to sensitivity and specificity, which use factor_harmonize. Default = FALSE

verbose

Logical: If TRUE, print messages to output

Details

BAcc = .5 * (Sensitivity + Specificity)


egenn/rtemis documentation built on April 24, 2024, 6:58 p.m.