MultilabelHamloss: Hamming loss

Description Usage Arguments Examples

View source: R/measures_multilabel.R

Description

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.

Usage

1
MultilabelHamloss(truth, response)

Arguments

truth

matrix of true values

response

matrix of predicted values

Examples

1
2
3
4
5
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)

mlr-org/measures documentation built on May 28, 2019, 4:02 p.m.