Classification Error
Calculates weighted classification error, i.e. the weighted proportion of elements in predicted
that are unequal to those in observed
. Equals 1 - accuracy, thus lower values are better.
classification_error(actual, predicted, w = NULL, ...)
actual |
Observed values. |
predicted |
Predicted values. |
w |
Optional case weights. |
... |
Further arguments passed to |
A numeric vector of length one.
classification_error(c(0, 0, 1, 1), c(0, 0, 1, 1)) classification_error(c(1, 0, 0, 1), c(0, 0, 1, 1)) classification_error(c(1, 0, 0, 1), c(0, 0, 1, 1), w = 1:4)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.