We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0c106 commit 0f24ab4Copy full SHA for 0f24ab4
imblearn/under_sampling/prototype_selection/neighbourhood_cleaning_rule.py
@@ -73,6 +73,15 @@ class NeighbourhoodCleaningRule(BaseCleaningSampler):
73
:class:`sklearn.neighbors.base.KNeighborsMixin` that will be used to
74
find the nearest-neighbors.
75
76
+ threshold_cleaning : float, optional (default=0.5)
77
+ Threshold used to whether consider a class or not during the cleaning
78
+ after applying ENN. A class will be considered during cleaning when:
79
+
80
+ Ci > C x T ,
81
82
+ where Ci and C is the number of samples in the class and the data set,
83
+ respectively and theta is the threshold.
84
85
n_jobs : int, optional (default=1)
86
The number of threads to open if possible.
87
0 commit comments