1 write to _clusterCentroids
Microsoft.ML.Data (1)
Evaluators\ClusteringEvaluator.cs (1)
330_clusterCentroids = new VBuffer<Single>[_numClusters];
6 references to _clusterCentroids
Microsoft.ML.Data (6)
Evaluators\ClusteringEvaluator.cs (6)
297var centroidI = _clusterCentroids[i]; 305var centroidJ = _clusterCentroids[j]; 332_clusterCentroids[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.GetVectorSize()); 363clusterCentroids[i].CopyTo(ref _clusterCentroids[i]); 364VectorUtils.ScaleBy(ref _clusterCentroids[i], (Single)(1.0 / _numInstancesOfClstr[i])); 372var distance = VectorUtils.Distance(in _clusterCentroids[assigned], in features);