Exemplo n.º 1
0
 def _predict_proba(self, X):
     if hasattr(self, '_onedal_estimator'):
         logging.info("sklearn.svm.NuSVC._predict_proba: " +
                      get_patch_message("onedal"))
         if getattr(self, 'clf_prob', None) is None:
             raise NotFittedError(
                 "predict_proba is not available when fitted with probability=False"
             )
         return self.clf_prob.predict_proba(X)
     else:
         logging.info("sklearn.svm.NuSVC._predict_proba: " +
                      get_patch_message("sklearn"))
         return sklearn_NuSVC._predict_proba(self, X)