Table 4. Confusion Matrix of the OPLS-DA Modela.
| predicted class |
||||||||
|---|---|---|---|---|---|---|---|---|
| confusion matrix | Shanhe | Dow | samples | % NER | % CCR (%) | sensitivity (%) | specificity (%) | samples (%) |
| actual class | Shanhe | 3 | 0 | 3 | 100 | |||
| Dow | 0 | 5 | 5 | 100 | ||||
| total | 8 | 100 | 100 | 100 | 100 | |||
Nonerror rate (% NER) for each class = 100 × (correctly classified)/(total), correct classification rate (% CCR) for all classes = 100 × (correctly classified)/(total), sensitivity = % of samples of class i, correctly classified as i, and specificity = % of samples of class ≠ i, correctly classified as not i.