performance: Compute Performance Metrics

View source: R/allgeneric.R

performanceR Documentation

Compute Performance Metrics

Description

Generic function to compute performance metrics from result objects.

Usage

performance(x, ...)

Arguments

x

The classification/regression result object to evaluate.

...

Additional arguments passed to method-specific performance functions.

Value

Named numeric vector of performance metrics.

Examples

cres <- binary_classification_result(
  observed  = factor(c("a", "b")),
  predicted = factor(c("a", "b")),
  probs     = matrix(c(0.8, 0.2, 0.3, 0.7), ncol = 2,
                     dimnames = list(NULL, c("a", "b")))
)
performance(cres)

bbuchsbaum/rMVPA documentation built on June 10, 2025, 8:23 p.m.