function to compare the original matrix of correct classes to each component of the output object for a certain classifier
Useful links