View source: R/som.nn.accuracy.R
som.nn.all.accuracy | R Documentation |
Calculates the accuracy over all class lables for a prediction result if the corresponding vector of true class labels is provided.
som.nn.all.accuracy(x, class.labels)
x |
|
class.labels |
|
It is defined as
acc = (TP + TN) / total = sum(diag(cmat)) / sum(cmat)
with TP = true positives, TN = true negatives and total = total number of samples of a class. This is equivalent to the ratio of (correctly classified samples) / (total number of samples).
one value
overall accuracy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.