MultilabelTPR: TPR (multilabel)

Description Usage Arguments

View source: R/measures_multilabel.R

Description

Also called recall. Averaged proportion of predicted labels which are relevant for each instance, following the definition by Charte and Charte: https: / /journal.r-project.org / archive / 2015 - 2 / charte-charte.pdf. Fractions where the denominator becomes 0 are ignored in the average calculation.

Usage

1
MultilabelTPR(truth, response)

Arguments

truth

matrix of true values

response

matrix of predicted values 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) MultilabelTPR(truth, response)


measures documentation built on Jan. 19, 2021, 5:08 p.m.