scorer | R Documentation |
Computes various predictive performance scores between two binary columns of a table
scorer(df, prediction_col, actual_col)
list
containing various scores. Returned scores are:
tp (True Positive), tn (True Negative), fp (False Positive), fn (False Negative),
tpr (True Positive Rate) or recall ro sensitivity or hit_rate,
fnr (False Negative Rate) or miss_rate,
tnr (True Negative Rate) or specificity or selectivity
fpr (False Positive Rate) or fall_out,
ppv (Positive Predictive Value) or precision
fdr (False Discovery Rate),
for (False Omission Rate),
pt (Prevalence Threshold),
ts (Threat Score) or csi (Critical Success Index)
accuracy, ba (Balanced Accuracy)
f1 (F1 Score), fmi (Fowlkes–Mallows Index),
informedness, markedness
mcc (Matthews Correlation Coefficient)
lift
df
data.frame, tibble, data.table
or matrix
: Input table containing at least two columns with binary data
prediction_col
character
header of the column containing predicted binary classes
actual_col
character
header of the column containing actual binary classes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.