classify_with_scores function

Classification based on a thresholding of the scores