View source: R/measures_multiclass.R
Defined as: 1 - sum(weights * conf.mat) / sum(weights * expected.mat), the weight matrix measures seriousness of disagreement with the squared euclidean metric.
1 | WKAPPA(truth, response)
|
truth |
vector of true values |
response |
vector of predicted values n = 20 set.seed(122) truth = as.factor(sample(c(1,2,3), n, replace = TRUE)) response = as.factor(sample(c(1,2,3), n, repla WKAPPA(truth, response) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.