measures (version 0.2)

MultilabelSubset01: Subset-0-1 loss

Description

Proportion of observations where the complete multilabel set (all 0-1-labels) is predicted incorrectly, following the definition by Charte and Charte: https://journal.r-project.org/archive/2015-2/charte-charte.pdf.

Usage

MultilabelSubset01(truth, response)

Arguments

truth

matrix of true values

response

matrix of predicted values

Examples

Run this code
# NOT RUN {
n = 20
set.seed(122)
truth = matrix(sample(c(0,1), 60, replace = TRUE), 20, 3)
response = matrix(sample(c(0,1), 60, replace = TRUE), 20, 3)
MultilabelSubset01(truth, response)
# }

Run the code above in your browser using DataLab