Validate lengths equal each element of classes and class_probabilities