imblearn/ensemble/_bagging.py

Killed 0 out of 11 mutants

Survived

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

Mutant 217

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -176,7 +176,6 @@
      [  2 225]]
     """
 
-    @_deprecate_positional_args
     def __init__(
         self,
         base_estimator=None,

Mutant 218

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -180,7 +180,7 @@
     def __init__(
         self,
         base_estimator=None,
-        n_estimators=10,
+        n_estimators=11,
         *,
         max_samples=1.0,
         max_features=1.0,

Mutant 219

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -182,7 +182,7 @@
         base_estimator=None,
         n_estimators=10,
         *,
-        max_samples=1.0,
+        max_samples=2.0,
         max_features=1.0,
         bootstrap=True,
         bootstrap_features=False,

Mutant 220

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -183,7 +183,7 @@
         n_estimators=10,
         *,
         max_samples=1.0,
-        max_features=1.0,
+        max_features=2.0,
         bootstrap=True,
         bootstrap_features=False,
         oob_score=False,

Mutant 221

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -184,7 +184,7 @@
         *,
         max_samples=1.0,
         max_features=1.0,
-        bootstrap=True,
+        bootstrap=False,
         bootstrap_features=False,
         oob_score=False,
         warm_start=False,

Mutant 222

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -185,7 +185,7 @@
         max_samples=1.0,
         max_features=1.0,
         bootstrap=True,
-        bootstrap_features=False,
+        bootstrap_features=True,
         oob_score=False,
         warm_start=False,
         sampling_strategy="auto",

Mutant 223

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -186,7 +186,7 @@
         max_features=1.0,
         bootstrap=True,
         bootstrap_features=False,
-        oob_score=False,
+        oob_score=True,
         warm_start=False,
         sampling_strategy="auto",
         replacement=False,

Mutant 224

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -187,7 +187,7 @@
         bootstrap=True,
         bootstrap_features=False,
         oob_score=False,
-        warm_start=False,
+        warm_start=True,
         sampling_strategy="auto",
         replacement=False,
         n_jobs=None,

Mutant 225

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -188,7 +188,7 @@
         bootstrap_features=False,
         oob_score=False,
         warm_start=False,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         replacement=False,
         n_jobs=None,
         random_state=None,

Mutant 226

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -189,7 +189,7 @@
         oob_score=False,
         warm_start=False,
         sampling_strategy="auto",
-        replacement=False,
+        replacement=True,
         n_jobs=None,
         random_state=None,
         verbose=0,

Mutant 227

--- imblearn/ensemble/_bagging.py
+++ imblearn/ensemble/_bagging.py
@@ -192,7 +192,7 @@
         replacement=False,
         n_jobs=None,
         random_state=None,
-        verbose=0,
+        verbose=1,
     ):
 
         super().__init__(