We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e997e23 commit 94b0725Copy full SHA for 94b0725
imblearn/over_sampling/_smote/filter.py
@@ -345,10 +345,8 @@ def _validate_estimator(self):
345
346
if self.svm_estimator is None:
347
self.svm_estimator_ = SVC(gamma="scale", random_state=self.random_state)
348
- elif isinstance(self.svm_estimator, SVC):
349
- self.svm_estimator_ = clone(self.svm_estimator)
350
else:
351
- raise_isinstance_error("svm_estimator", [SVC], self.svm_estimator)
+ self.svm_estimator_ = clone(self.svm_estimator)
352
353
def _fit_resample(self, X, y):
354
self._validate_estimator()
0 commit comments