imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py

Killed 0 out of 8 mutants

Survived

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

Mutant 398

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -18,7 +18,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 399

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -18,7 +18,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 400

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

Mutant 401

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

Mutant 402

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -106,7 +106,7 @@
     def __init__(
         self,
         *,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         n_neighbors=3,
         kind_sel="all",
         threshold_cleaning=0.5,

Mutant 403

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -107,7 +107,7 @@
         self,
         *,
         sampling_strategy="auto",
-        n_neighbors=3,
+        n_neighbors=4,
         kind_sel="all",
         threshold_cleaning=0.5,
         n_jobs=None,

Mutant 404

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -108,7 +108,7 @@
         *,
         sampling_strategy="auto",
         n_neighbors=3,
-        kind_sel="all",
+        kind_sel="XXallXX",
         threshold_cleaning=0.5,
         n_jobs=None,
     ):

Mutant 405

--- imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
+++ imblearn/under_sampling/_prototype_selection/_neighbourhood_cleaning_rule.py
@@ -109,7 +109,7 @@
         sampling_strategy="auto",
         n_neighbors=3,
         kind_sel="all",
-        threshold_cleaning=0.5,
+        threshold_cleaning=1.5,
         n_jobs=None,
     ):
         super().__init__(sampling_strategy=sampling_strategy)