Skip to contents

Computes the micro F1 score of the predictions.

Usage

microF1Metric(auxData, predicted)

Arguments

auxData

The true labels.

predicted

The predicted labels.

Value

The micro F1 score.

Examples

auxData <- factor(c("A", "B", "A", "B"))
predicted <- factor(c("A", "A", "A", "B"))
microF1Metric(auxData, predicted)
#> [1] 0.75