| f1_aggregate | R Documentation |
Sums the confusion matrices of several batches and computes the F1 once. Batches therefore weigh by their number of positives, not equally, which is how the F1 of a scenario is reported.
f1_aggregate(TP, FP, FN)
TP |
True positives, one value per batch. |
FP |
False positives, one value per batch. |
FN |
False negatives, one value per batch. |
The aggregate F1, or NA when no batch has a positive, real or predicted.
f1_aggregate(TP = c(8, 6), FP = c(2, 3), FN = c(5, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.