Add bounds checking to dd classifier_score_value