Fix validation for classifiers