Fixed get_class in SVM classifier