imblearn/ensemble/_weight_boosting.py
Killed 0 out of 7 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 228
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -121,7 +121,6 @@
array([...])
"""
- @_deprecate_positional_args
def __init__(
self,
base_estimator=None,
Mutant 229
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -126,7 +126,7 @@
self,
base_estimator=None,
*,
- n_estimators=50,
+ n_estimators=51,
learning_rate=1.0,
algorithm="SAMME.R",
sampling_strategy="auto",
Mutant 230
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -127,7 +127,7 @@
base_estimator=None,
*,
n_estimators=50,
- learning_rate=1.0,
+ learning_rate=2.0,
algorithm="SAMME.R",
sampling_strategy="auto",
replacement=False,
Mutant 231
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -128,7 +128,7 @@
*,
n_estimators=50,
learning_rate=1.0,
- algorithm="SAMME.R",
+ algorithm="XXSAMME.RXX",
sampling_strategy="auto",
replacement=False,
random_state=None,
Mutant 232
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -129,7 +129,7 @@
n_estimators=50,
learning_rate=1.0,
algorithm="SAMME.R",
- sampling_strategy="auto",
+ sampling_strategy="XXautoXX",
replacement=False,
random_state=None,
):
Mutant 233
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -130,7 +130,7 @@
learning_rate=1.0,
algorithm="SAMME.R",
sampling_strategy="auto",
- replacement=False,
+ replacement=True,
random_state=None,
):
super().__init__(
Mutant 234
--- imblearn/ensemble/_weight_boosting.py
+++ imblearn/ensemble/_weight_boosting.py
@@ -180,7 +180,7 @@
replacement=self.replacement,
)
- def _make_sampler_estimator(self, append=True, random_state=None):
+ def _make_sampler_estimator(self, append=False, random_state=None):
"""Make and configure a copy of the `base_estimator_` attribute.
Warning: This method should be used to properly instantiate new
sub-estimators.