imblearn/under_sampling/_prototype_selection/_nearmiss.py
Killed 0 out of 6 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 302
--- 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 303
--- 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 304
--- 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 305
--- 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 306
--- 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 307
--- 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.