imblearn/under_sampling/_prototype_generation/_cluster_centroids.py
Killed 0 out of 8 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 305
--- 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 306
--- 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 307
--- 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 308
--- 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 309
--- 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 310
--- 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 311
--- 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 312
--- 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