powered by
Proportion of labels that are predicted incorrectly, following the definition by Charte and Charte: https://journal.r-project.org/archive/2015-2/charte-charte.pdf.
MultilabelHamloss(truth, response)
matrix of true values
matrix of predicted values
# 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) MultilabelHamloss(truth, response) # }
Run the code above in your browser using DataLab