1 write to ClusterSizes
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
1063
ClusterSizes
= new long[k];
8 references to ClusterSizes
Microsoft.ML.KMeansClustering (8)
KMeansPlusPlusTrainer.cs (8)
1086
Array.Clear(
ClusterSizes
, 0, K);
1107
ClusterSizes
[bestCluster]++;
1142
ClusterSizes
[cluster]++;
1161
for (int j = 0; j < reducedState.
ClusterSizes
.Length; j++)
1163
reducedState.
ClusterSizes
[j] += workChunkArr[i].
ClusterSizes
[j];
1213
if (
ClusterSizes
[i] > 1)
1214
VectorUtils.ScaleBy(ref Centroids[i], (float)(1.0 /
ClusterSizes
[i]));