Fix grid-search-reported accuracy for classification if confusion matrix is larger than the threshold.