imblearn/under_sampling/_prototype_selection/_nearmiss.py

Killed 0 out of 6 mutants

Survived

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

Mutant 444

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

Mutant 445

--- imblearn/under_sampling/_prototype_selection/_nearmiss.py
+++ imblearn/under_sampling/_prototype_selection/_nearmiss.py
@@ -98,7 +98,7 @@
     def __init__(
         self,
         *,
-        sampling_strategy="auto",
+        sampling_strategy="XXautoXX",
         version=1,
         n_neighbors=3,
         n_neighbors_ver3=3,

Mutant 446

--- imblearn/under_sampling/_prototype_selection/_nearmiss.py
+++ imblearn/under_sampling/_prototype_selection/_nearmiss.py
@@ -99,7 +99,7 @@
         self,
         *,
         sampling_strategy="auto",
-        version=1,
+        version=2,
         n_neighbors=3,
         n_neighbors_ver3=3,
         n_jobs=None,

Mutant 447

--- imblearn/under_sampling/_prototype_selection/_nearmiss.py
+++ imblearn/under_sampling/_prototype_selection/_nearmiss.py
@@ -100,7 +100,7 @@
         *,
         sampling_strategy="auto",
         version=1,
-        n_neighbors=3,
+        n_neighbors=4,
         n_neighbors_ver3=3,
         n_jobs=None,
     ):

Mutant 448

--- imblearn/under_sampling/_prototype_selection/_nearmiss.py
+++ imblearn/under_sampling/_prototype_selection/_nearmiss.py
@@ -101,7 +101,7 @@
         sampling_strategy="auto",
         version=1,
         n_neighbors=3,
-        n_neighbors_ver3=3,
+        n_neighbors_ver3=4,
         n_jobs=None,
     ):
         super().__init__(sampling_strategy=sampling_strategy)

Mutant 449

--- imblearn/under_sampling/_prototype_selection/_nearmiss.py
+++ imblearn/under_sampling/_prototype_selection/_nearmiss.py
@@ -111,7 +111,7 @@
         self.n_jobs = n_jobs
 
     def _selection_dist_based(
-        self, X, y, dist_vec, num_samples, key, sel_strategy="nearest"
+        self, X, y, dist_vec, num_samples, key, sel_strategy="XXnearestXX"
     ):
         """Select the appropriate samples depending of the strategy selected.