
Last chance! 50% off unlimited learning
Sale ends in
Classification measure defined as
ce(truth, response, ...)
(factor()
)
True (observed) labels.
Must have the same levels and length as response
.
(factor()
)
Predicted response labels.
Must have the same levels and length as truth
.
(any
)
Additional arguments. Currently ignored.
Performance value as numeric(1)
.
Type: "classif"
Range:
Minimize: TRUE
Required prediction: response
Other Classification Measures:
acc()
,
bacc()
,
logloss()
,
mauc_aunu()
,
mbrier()
# NOT RUN {
set.seed(1)
lvls = c("a", "b", "c")
truth = factor(sample(lvls, 10, replace = TRUE), levels = lvls)
response = factor(sample(lvls, 10, replace = TRUE), levels = lvls)
ce(truth, response)
# }
Run the code above in your browser using DataLab