imblearn/under_sampling/_prototype_generation/_cluster_centroids.py

Killed 0 out of 8 mutants

Survived

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

Mutant 386

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -22,7 +22,7 @@
 from ...utils._docstring import _random_state_docstring
 from ...utils._validation import _deprecate_positional_args
 
-VOTING_KIND = ("auto", "hard", "soft")
+VOTING_KIND = ("XXautoXX", "hard", "soft")
 
 
 @Substitution(

Mutant 387

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -22,7 +22,7 @@
 from ...utils._docstring import _random_state_docstring
 from ...utils._validation import _deprecate_positional_args
 
-VOTING_KIND = ("auto", "hard", "soft")
+VOTING_KIND = ("auto", "XXhardXX", "soft")
 
 
 @Substitution(

Mutant 388

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -22,7 +22,7 @@
 from ...utils._docstring import _random_state_docstring
 from ...utils._validation import _deprecate_positional_args
 
-VOTING_KIND = ("auto", "hard", "soft")
+VOTING_KIND = ("auto", "hard", "XXsoftXX")
 
 
 @Substitution(

Mutant 389

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -22,7 +22,7 @@
 from ...utils._docstring import _random_state_docstring
 from ...utils._validation import _deprecate_positional_args
 
-VOTING_KIND = ("auto", "hard", "soft")
+VOTING_KIND = None
 
 
 @Substitution(

Mutant 390

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -97,7 +97,6 @@
     Resampled dataset shape Counter({{...}})
     """
 
-    @_deprecate_positional_args
     def __init__(
         self,
         *,

Mutant 391

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -101,7 +101,7 @@
     def __init__(
         self,
         *,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         random_state=None,
         estimator=None,
         voting="auto",

Mutant 392

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -104,7 +104,7 @@
         sampling_strategy="auto",
         random_state=None,
         estimator=None,
-        voting="auto",
+        voting="XXautoXX",
         n_jobs="deprecated",
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 393

--- imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
+++ imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
@@ -105,7 +105,7 @@
         random_state=None,
         estimator=None,
         voting="auto",
-        n_jobs="deprecated",
+        n_jobs="XXdeprecatedXX",
     ):
         super().__init__(sampling_strategy=sampling_strategy)
         self.random_state = random_state