som.nn.confusion {som.nn} | R Documentation |
Calculate confusion matrix
Description
Calculates the confusion matrix for a prediction result if the corresponding vector of true class labels is provided.
Usage
som.nn.confusion(x, class.labels)
Arguments
x |
|
class.labels |
|
Details
The confusion matrix (also called table of confusion) displays the number of predicted class labels for each actual class. Example:
pred. cat | pred. dog | pred. rabbit | unknown | |
actual cat | 5 | 3 | 0 | 0 |
actual dog | 2 | 3 | 1 | 0 |
actual rabbit | 0 | 2 | 9 | 2 |
The confusion matrix includes a column unknown
displaying the samples
for which no unambiguous prediction is possible.
Value
data.frame
containing the confusion matrix.
[Package som.nn version 1.4.4 Index]