PN | R Documentation |
Calculates True Positive (TP), True Negative (TN), False Positive (FP), and False Negative (FN) counts from predicted and actual values
PN(object, y)
## S4 method for signature 'numeric,numeric'
PN(object, y)
y |
Numeric vector of actual values |
x |
Numeric vector of predicted values |
A data frame containing TP, TN, FP, and FN counts
## Not run:
pred <- c(1, -1, 1, -1)
actual <- c(1, -1, -1, 1)
confusion_stats <- PN(pred, actual)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.