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]); 330var shapeC2 = new long[] { _centroidL2s.Length }; 331var nameC2 = ctx.AddInitializer(_centroidL2s, shapeC2, "C2");