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, verbosity = 1)

Arguments

true

True labels

predicted

Estimated labels

harmonize

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

verbosity

Integer: If > 0, print messages to console.

Details

BAcc = .5 * (Sensitivity + Specificity)


egenn/rtemis documentation built on Oct. 28, 2024, 6:30 a.m.