
Last chance! 50% off unlimited learning
Sale ends in
ce
is defined as the proportion of elements in actual
that are not equal
to the corresponding element in predicted
.
ce(actual, predicted)
The ground truth vector, where elements of the vector can be any variable type.
The predicted vector, where elements of the vector represent a
prediction for the corresponding value in actual
.
# NOT RUN {
actual <- c('a', 'a', 'c', 'b', 'c')
predicted <- c('a', 'b', 'c', 'b', 'a')
ce(actual, predicted)
# }
Run the code above in your browser using DataLab