imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py

Killed 0 out of 17 mutants

Survived

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

Mutant 244

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
 from ...utils._docstring import _n_jobs_docstring
 from ...utils._validation import _deprecate_positional_args
 
-SEL_KIND = ("all", "mode")
+SEL_KIND = ("XXallXX", "mode")
 
 
 @Substitution(

Mutant 245

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
 from ...utils._docstring import _n_jobs_docstring
 from ...utils._validation import _deprecate_positional_args
 
-SEL_KIND = ("all", "mode")
+SEL_KIND = ("all", "XXmodeXX")
 
 
 @Substitution(

Mutant 246

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
 from ...utils._docstring import _n_jobs_docstring
 from ...utils._validation import _deprecate_positional_args
 
-SEL_KIND = ("all", "mode")
+SEL_KIND = None
 
 
 @Substitution(

Mutant 247

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -100,7 +100,6 @@
     Resampled dataset shape Counter({{1: 887, 0: 100}})
     """
 
-    @_deprecate_positional_args
     def __init__(
         self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
         n_jobs=None

Mutant 248

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
 
     @_deprecate_positional_args
     def __init__(
-        self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+        self, *, sampling_strategy="XXautoXX", n_neighbors=3, kind_sel="all",
         n_jobs=None
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 249

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
 
     @_deprecate_positional_args
     def __init__(
-        self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+        self, *, sampling_strategy="auto", n_neighbors=4, kind_sel="all",
         n_jobs=None
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 250

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
 
     @_deprecate_positional_args
     def __init__(
-        self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+        self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="XXallXX",
         n_jobs=None
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 251

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -248,7 +248,6 @@
     Resampled dataset shape Counter({{1: 887, 0: 100}})
     """
 
-    @_deprecate_positional_args
     def __init__(
         self,
         *,

Mutant 252

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -252,7 +252,7 @@
     def __init__(
         self,
         *,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         n_neighbors=3,
         max_iter=100,
         kind_sel="all",

Mutant 253

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -253,7 +253,7 @@
         self,
         *,
         sampling_strategy="auto",
-        n_neighbors=3,
+        n_neighbors=4,
         max_iter=100,
         kind_sel="all",
         n_jobs=None,

Mutant 254

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -254,7 +254,7 @@
         *,
         sampling_strategy="auto",
         n_neighbors=3,
-        max_iter=100,
+        max_iter=101,
         kind_sel="all",
         n_jobs=None,
     ):

Mutant 255

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -255,7 +255,7 @@
         sampling_strategy="auto",
         n_neighbors=3,
         max_iter=100,
-        kind_sel="all",
+        kind_sel="XXallXX",
         n_jobs=None,
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 256

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -427,7 +427,6 @@
     Resampled dataset shape Counter({{1: 887, 0: 100}})
     """
 
-    @_deprecate_positional_args
     def __init__(
         self,
         *,

Mutant 257

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -431,7 +431,7 @@
     def __init__(
         self,
         *,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         n_neighbors=3,
         kind_sel="all",
         allow_minority=False,

Mutant 258

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -432,7 +432,7 @@
         self,
         *,
         sampling_strategy="auto",
-        n_neighbors=3,
+        n_neighbors=4,
         kind_sel="all",
         allow_minority=False,
         n_jobs=None,

Mutant 259

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -433,7 +433,7 @@
         *,
         sampling_strategy="auto",
         n_neighbors=3,
-        kind_sel="all",
+        kind_sel="XXallXX",
         allow_minority=False,
         n_jobs=None,
     ):

Mutant 260

--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -434,7 +434,7 @@
         sampling_strategy="auto",
         n_neighbors=3,
         kind_sel="all",
-        allow_minority=False,
+        allow_minority=True,
         n_jobs=None,
     ):
         super().__init__(sampling_strategy=sampling_strategy)