imblearn/over_sampling/base.py

Killed 0 out of 3 mutants

Survived

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

Mutant 86

--- imblearn/over_sampling/base.py
+++ imblearn/over_sampling/base.py
@@ -15,7 +15,7 @@
     instead.
     """
 
-    _sampling_type = "over-sampling"
+    _sampling_type = "XXover-samplingXX"
 
     _sampling_strategy_docstring = """sampling_strategy : float, str, dict or callable, default='auto'
         Sampling information to resample the data set.

Mutant 87

--- imblearn/over_sampling/base.py
+++ imblearn/over_sampling/base.py
@@ -15,7 +15,7 @@
     instead.
     """
 
-    _sampling_type = "over-sampling"
+    _sampling_type = None
 
     _sampling_strategy_docstring = """sampling_strategy : float, str, dict or callable, default='auto'
         Sampling information to resample the data set.

Mutant 88

--- imblearn/over_sampling/base.py
+++ imblearn/over_sampling/base.py
@@ -17,40 +17,5 @@
 
     _sampling_type = "over-sampling"
 
-    _sampling_strategy_docstring = """sampling_strategy : float, str, dict or callable, default='auto'
-        Sampling information to resample the data set.
+    _sampling_strategy_docstring = None
 
-        - When ``float``, it corresponds to the desired ratio of the number of
-          samples in the minority class over the number of samples in the
-          majority class after resampling. Therefore, the ratio is expressed as
-          :math:`\\alpha_{os} = N_{rm} / N_{M}` where :math:`N_{rm}` is the
-          number of samples in the minority class after resampling and
-          :math:`N_{M}` is the number of samples in the majority class.
-
-            .. warning::
-               ``float`` is only available for **binary** classification. An
-               error is raised for multi-class classification.
-
-        - When ``str``, specify the class targeted by the resampling. The
-          number of samples in the different classes will be equalized.
-          Possible choices are:
-
-            ``'minority'``: resample only the minority class;
-
-            ``'not minority'``: resample all classes but the minority class;
-
-            ``'not majority'``: resample all classes but the majority class;
-
-            ``'all'``: resample all classes;
-
-            ``'auto'``: equivalent to ``'not majority'``.
-
-        - When ``dict``, the keys correspond to the targeted classes. The
-          values correspond to the desired number of samples for each targeted
-          class.
-
-        - When callable, function taking ``y`` and returns a ``dict``. The keys
-          correspond to the targeted classes. The values correspond to the
-          desired number of samples for each class.
-        """.strip()
-