imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
Killed 0 out of 17 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 373
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
from ...utils._docstring import _n_jobs_docstring
from ...utils._validation import _deprecate_positional_args
-SEL_KIND = ("all", "mode")
+SEL_KIND = ("XXallXX", "mode")
@Substitution(
Mutant 374
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
from ...utils._docstring import _n_jobs_docstring
from ...utils._validation import _deprecate_positional_args
-SEL_KIND = ("all", "mode")
+SEL_KIND = ("all", "XXmodeXX")
@Substitution(
Mutant 375
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -19,7 +19,7 @@
from ...utils._docstring import _n_jobs_docstring
from ...utils._validation import _deprecate_positional_args
-SEL_KIND = ("all", "mode")
+SEL_KIND = None
@Substitution(
Mutant 376
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -100,7 +100,6 @@
Resampled dataset shape Counter({{1: 887, 0: 100}})
"""
- @_deprecate_positional_args
def __init__(
self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
n_jobs=None
Mutant 377
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
@_deprecate_positional_args
def __init__(
- self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+ self, *, sampling_strategy="XXautoXX", n_neighbors=3, kind_sel="all",
n_jobs=None
):
super().__init__(sampling_strategy=sampling_strategy)
Mutant 378
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
@_deprecate_positional_args
def __init__(
- self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+ self, *, sampling_strategy="auto", n_neighbors=4, kind_sel="all",
n_jobs=None
):
super().__init__(sampling_strategy=sampling_strategy)
Mutant 379
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -102,7 +102,7 @@
@_deprecate_positional_args
def __init__(
- self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="all",
+ self, *, sampling_strategy="auto", n_neighbors=3, kind_sel="XXallXX",
n_jobs=None
):
super().__init__(sampling_strategy=sampling_strategy)
Mutant 380
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -248,7 +248,6 @@
Resampled dataset shape Counter({{1: 887, 0: 100}})
"""
- @_deprecate_positional_args
def __init__(
self,
*,
Mutant 381
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -252,7 +252,7 @@
def __init__(
self,
*,
- sampling_strategy="auto",
+ sampling_strategy="XXautoXX",
n_neighbors=3,
max_iter=100,
kind_sel="all",
Mutant 382
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -253,7 +253,7 @@
self,
*,
sampling_strategy="auto",
- n_neighbors=3,
+ n_neighbors=4,
max_iter=100,
kind_sel="all",
n_jobs=None,
Mutant 383
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -254,7 +254,7 @@
*,
sampling_strategy="auto",
n_neighbors=3,
- max_iter=100,
+ max_iter=101,
kind_sel="all",
n_jobs=None,
):
Mutant 384
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -255,7 +255,7 @@
sampling_strategy="auto",
n_neighbors=3,
max_iter=100,
- kind_sel="all",
+ kind_sel="XXallXX",
n_jobs=None,
):
super().__init__(sampling_strategy=sampling_strategy)
Mutant 385
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -427,7 +427,6 @@
Resampled dataset shape Counter({{1: 887, 0: 100}})
"""
- @_deprecate_positional_args
def __init__(
self,
*,
Mutant 386
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -431,7 +431,7 @@
def __init__(
self,
*,
- sampling_strategy="auto",
+ sampling_strategy="XXautoXX",
n_neighbors=3,
kind_sel="all",
allow_minority=False,
Mutant 387
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -432,7 +432,7 @@
self,
*,
sampling_strategy="auto",
- n_neighbors=3,
+ n_neighbors=4,
kind_sel="all",
allow_minority=False,
n_jobs=None,
Mutant 388
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -433,7 +433,7 @@
*,
sampling_strategy="auto",
n_neighbors=3,
- kind_sel="all",
+ kind_sel="XXallXX",
allow_minority=False,
n_jobs=None,
):
Mutant 389
--- imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
+++ imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py
@@ -434,7 +434,7 @@
sampling_strategy="auto",
n_neighbors=3,
kind_sel="all",
- allow_minority=False,
+ allow_minority=True,
n_jobs=None,
):
super().__init__(sampling_strategy=sampling_strategy)