
Last chance! 50% off unlimited learning
Sale ends in
`Spe()` computes the Specificity or TNR (True Negative Rate) between the output of a classification prediction model and the actual values of the target.
Spe(ct, multi.class = "macro")
TNR (a single value).
Confusion Matrix.
Should the results of each class be aggregated, and how? Options: "none", "macro", "micro". (Defaults: "macro").
y <- c(rep("a",3),rep("b",2))
y_pred <- c(rep("a",2),rep("b",3))
ct <- table(y,y_pred)
Spe(ct)
Run the code above in your browser using DataLab