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