Accuracy
accuracy
is defined as the proportion of elements in actual
that are
equal to the corresponding element in predicted
accuracy(actual, predicted)
actual |
The ground truth vector, where elements of the vector can be any variable type. |
predicted |
The predicted vector, where elements of the vector represent a
prediction for the corresponding value in |
actual <- c('a', 'a', 'c', 'b', 'c') predicted <- c('a', 'b', 'c', 'b', 'a') accuracy(actual, predicted)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.