2 writes to _centroidL2s
Microsoft.ML.KMeansClustering (2)
KMeansModelParameters.cs (2)
85
_centroidL2s
= new float[_k];
126
_centroidL2s
= new float[_k];
4 references to _centroidL2s
Microsoft.ML.KMeansClustering (4)
KMeansModelParameters.cs (4)
173
-2 * VectorUtils.DotProduct(in _centroids[i], in src) +
_centroidL2s
[i] + instanceL2);
270
_centroidL2s
[i] = VectorUtils.NormSquared(_centroids[i]);
330
var shapeC2 = new long[] {
_centroidL2s
.Length };
331
var nameC2 = ctx.AddInitializer(
_centroidL2s
, shapeC2, "C2");