File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ class ClusterCentroids(BaseMulticlassSampler):
14
14
"""Perform under-sampling by generating centroids based on
15
15
clustering methods.
16
16
17
- Experimental method that under samples the majority class by replacing a
18
- cluster of majority samples by the cluster centroid of a KMeans algorithm.
19
- This algorithm keeps N majority samples by fitting the KMeans algorithm
20
- with N cluster to the majority class and using the coordinates of the N
21
- cluster centroids as the new majority samples.
17
+ Method that under samples the majority class by replacing a
18
+ cluster of majority samples by the cluster centroid of a KMeans
19
+ algorithm. This algorithm keeps N majority samples by fitting the
20
+ KMeans algorithm with N cluster to the majority class and using
21
+ the coordinates of the N cluster centroids as the new majority
22
+ samples.
22
23
23
24
Parameters
24
25
----------
You can’t perform that action at this time.
0 commit comments