Commits

Aleš Erjavec  committed 89a5fa1

Fixed a type check.

  • Participants
  • Parent commits 57399ad

Comments (0)

Files changed (1)

File Orange/classification/svm/__init__.py

         # Build args for svm_classifier_type constructor
         args = (bin_class_var, self.examples, all_sv, model)
 
-        if isinstance(svm_classifier_type, _SVMClassifierSparse):
+        if issubclass(svm_classifier_type, _SVMClassifierSparse):
             args = args + (int(self.__wrapped.use_non_meta),)
 
         if self.kernel_type == kernels.Custom: