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)
297
var centroidI =
_clusterCentroids
[i];
305
var centroidJ =
_clusterCentroids
[j];
332
_clusterCentroids
[i] = VBufferUtils.CreateEmpty<Single>(features.Value.Type.GetVectorSize());
363
clusterCentroids[i].CopyTo(ref
_clusterCentroids
[i]);
364
VectorUtils.ScaleBy(ref
_clusterCentroids
[i], (Single)(1.0 / _numInstancesOfClstr[i]));
372
var distance = VectorUtils.Distance(in
_clusterCentroids
[assigned], in features);