imblearn/under_sampling/_prototype_selection/_tomek_links.py

Killed 0 out of 3 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 386

--- imblearn/under_sampling/_prototype_selection/_tomek_links.py
+++ imblearn/under_sampling/_prototype_selection/_tomek_links.py
@@ -75,7 +75,6 @@
     Resampled dataset shape Counter({{1: 897, 0: 100}})
     """
 
-    @_deprecate_positional_args
     def __init__(self, *, sampling_strategy="auto", n_jobs=None):
         super().__init__(sampling_strategy=sampling_strategy)
         self.n_jobs = n_jobs

Mutant 387

--- imblearn/under_sampling/_prototype_selection/_tomek_links.py
+++ imblearn/under_sampling/_prototype_selection/_tomek_links.py
@@ -76,7 +76,7 @@
     """
 
     @_deprecate_positional_args
-    def __init__(self, *, sampling_strategy="auto", n_jobs=None):
+    def __init__(self, *, sampling_strategy="XXautoXX", n_jobs=None):
         super().__init__(sampling_strategy=sampling_strategy)
         self.n_jobs = n_jobs
 

Mutant 388

--- imblearn/under_sampling/_prototype_selection/_tomek_links.py
+++ imblearn/under_sampling/_prototype_selection/_tomek_links.py
@@ -80,7 +80,6 @@
         super().__init__(sampling_strategy=sampling_strategy)
         self.n_jobs = n_jobs
 
-    @staticmethod
     def is_tomek(y, nn_index, class_type):
         """Detect if samples are Tomek's link.