sim_metrics | R Documentation |
This function computes metrics for precision, recall, accuracy, specificity, false discovery rate, false positive rate, and the f1 score
returning the metrics in a named list and computing them from inputs of the number of true positives tp
,
the number of false positives fp
, the number of true negatives tn
, the number of false negatives fn
.
For any metric, if the denominator is equal to 0, the returned value for that metric is NA.
sim_metrics(tp, fp, tn, fn)
tp |
an integer for the number of true positives |
fp |
an integer for the number of false positives |
tn |
an integer for the number of true negatives |
fn |
an integer for the number of false negatives |
metric_list a named list returning precision, recall, accuracy, specificity, fpr, fdr, and f1 (the f1 score)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.