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):
3838 :class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
3939 find the nearest-neighbors.
4040
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+
4149 threshold_cleaning : float, optional (default=0.5)
4250 Threshold used to whether consider a class or not during the cleaning
4351 after applying ENN. A class will be considered during cleaning when:
You can’t perform that action at this time.
0 commit comments