mt_accuracy: Accuracy Calculator

View source: R/ac_metrics.R

mt_accuracyR Documentation

Accuracy Calculator

Description

Class for accuracy calculation. Binary labels (logical, 0/1 or factors with those labels) are compared by value; other labels are compared as text.

Usage

mt_accuracy()

Value

Metric object

Examples

library(daltoolbox)
obj <- mt_accuracy()
evaluate(obj, c(TRUE, FALSE, TRUE), c(TRUE, TRUE, TRUE))

heimdall documentation built on Dec. 2, 2026, 5:08 p.m.