compute_performance | R Documentation |
Delegate calculation of performance metrics to the appropriate method.
compute_performance(obj, result)
obj |
The input object. |
result |
The classification/regression result object to evaluate. |
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")))
)
dummy <- list(performance = performance)
class(dummy) <- "mvpa_model"
compute_performance(dummy, cres)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.