| cm_metrics | R Documentation |
Metrics of a batch from the counts of its confusion matrix, vectorised over
batches. A metric whose denominator is zero comes back as NA.
cm_metrics(TP, FP, TN, FN)
TP |
True positives, one value per batch. |
FP |
False positives, one value per batch. |
TN |
True negatives, one value per batch. |
FN |
False negatives, one value per batch. |
A list with accuracy, precision, recall and f1, one value per batch.
cm_metrics(TP = 8, FP = 2, TN = 85, FN = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.