performance | R Documentation |
Generic function to compute performance metrics from result objects.
performance(x, ...)
x |
The classification/regression result object to evaluate. |
... |
Additional arguments passed to method-specific performance functions. |
Named numeric vector of performance metrics.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.