View source: R/classif_zero_one.R
zero_one | R Documentation |
Calculates the per-observation 0/1 loss as
t != r.
Measure to compare true observed labels with predicted labels in multiclass classification tasks.
Note that this is an unaggregated measure, returning the losses per observation.
zero_one(truth, response, ...)
truth |
( |
response |
( |
... |
( |
Performance value as numeric(length(truth))
.
Type: "classif"
Range (per observation): [0, 1]
Minimize (per observation): TRUE
Required prediction: response
Other Classification Measures:
acc()
,
bacc()
,
ce()
,
logloss()
,
mauc_aunu()
,
mbrier()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.