MMCE {measures} | R Documentation |
Mean misclassification error
Description
Defined as: mean(response != truth)
Usage
MMCE(truth, response)
Arguments
truth |
vector of true values |
response |
vector of predicted values |
Examples
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, replace = TRUE))
MMCE(truth, response)
[Package measures version 0.3 Index]