View source: R/confusion.matrix.accuracy.simple.R
confusion.matrix.accuracy | R Documentation |
Calculate Accuracy, defined as (TP+TN)/(P+N), for a given confusion matrix.
confusion.matrix.accuracy(confusion.matrix)
confusion.matrix.accuracy.simple(
true.positive = 0,
false.positive = 0,
true.negative = 1,
false.negative = 0,
count.positive = true.positive + false.negative,
count.negative = true.negative + false.positive
)
confusion.matrix |
Matrix - confusion matrix. |
true.positive |
Scalar - Cases identified as true positive |
false.positive |
Scalar - Cases identified as false positive - optional if count.positive is used |
true.negative |
Scalar - Cases identified as true negative |
false.negative |
Scalar - Cases identified as false negative - optional if count.negative is used |
count.positive |
Scalar - Total cases identified as positive - optional if first four parameters are used. |
count.negative |
Scalar - Total cases identified as negative - optional if first four parameters are used. |
A scalar with computed accuracy value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.