Table 8 Confusion matrix of the classification in the testing set.

From: High accuracy machine learning identification of fentanyl-relevant molecular compound classification via constituent functional group analysis

   Prediction
Amide only Aniline only Benzene only Piperidine only Amide and aniline Amide and benzene Aniline and benzene Benzene and piperidine None
Ground truth Amide only 5 0 0 1 1 0 0 0 0
Aniline only 1 32 1 0 0 0 1 0 0
Benzene only 0 3 49 0 0 0 1 0 1
Piperidine only 0 0 0 4 0 0 0 0 1
Amide and aniline 1 0 0 0 3 1 0 0 1
Amide and benzene 1 1 0 0 1 1 0 0 1
Aniline and benzene 0 3 0 0 0 0 1 0 0
Benzene and piperidine 0 0 1 1 0 0 0 0 0
None 0 0 1 2 0 0 0 0 5