zero_one {mlr3measures} | R Documentation |
Zero-One Classification Loss (per observation)
Description
Calculates the per-observation 0/1 loss as
t_i \neq r_1.
The one-zero loss is 1 - zero-one.
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.
Usage
zero_one(truth, response, ...)
one_zero(truth, response, ...)
Arguments
truth |
( |
response |
( |
... |
( |
Value
Performance value as numeric(length(truth))
.
Meta Information
Type:
"classif"
Range (per observation):
[0, 1]
Minimize (per observation):
TRUE
Required prediction:
response
See Also
Other Classification Measures:
acc()
,
bacc()
,
ce()
,
logloss()
,
mauc_aunu()
,
mbrier()
,
mcc()
[Package mlr3measures version 0.6.0 Index]