Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MultilabelF1

F1 measure (multilabel)


Description

Harmonic mean of precision and recall on a per instance basis (Micro-F1), following the definition by Montanes et al.: http: / /www.sciencedirect.com / science / article / pii / S0031320313004019. Fractions where the denominator becomes 0 are replaced with 1 before computing the average across all instances.

Usage

MultilabelF1(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) MultilabelF1(truth, response)


measures

Performance Measures for Statistical Learning

v0.3
GPL-3
Authors
Philipp Probst [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.