File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
imblearn/under_sampling/_prototype_selection Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,14 @@ class NeighbourhoodCleaningRule(BaseCleaningSampler):
38
38
:class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
39
39
find the nearest-neighbors.
40
40
41
+ kind_sel : str, optional (default='all')
42
+ Strategy to use in order to exclude samples in the ENN sampling.
43
+
44
+ - If ``'all'``, all neighbours will have to agree with the samples of
45
+ interest to not be excluded.
46
+ - If ``'mode'``, the majority vote of the neighbours will be used in
47
+ order to exclude a sample.
48
+
41
49
threshold_cleaning : float, optional (default=0.5)
42
50
Threshold used to whether consider a class or not during the cleaning
43
51
after applying ENN. A class will be considered during cleaning when:
You can’t perform that action at this time.
0 commit comments