2 writes to _k
Microsoft.ML.KMeansClustering (2)
KMeansModelParameters.cs (2)
82_k = k; 121_k = ctx.Reader.ReadInt32();
22 references to _k
Microsoft.ML.KMeansClustering (22)
KMeansModelParameters.cs (22)
85_centroidL2s = new float[_k]; 86_centroids = new VBuffer<float>[_k]; 87for (int i = 0; i < _k; i++) 102_outputType = new VectorDataViewType(NumberDataViewType.Single, _k); 122Host.CheckDecode(_k > 0); 126_centroidL2s = new float[_k]; 127_centroids = new VBuffer<float>[_k]; 128for (int i = 0; i < _k; i++) 144_outputType = new VectorDataViewType(NumberDataViewType.Single, _k); 157var editor = VBufferEditor.Create(ref dst, _k); 167Host.Assert(distances.Length >= _k); 170for (int i = 0; i < _k; i++) 180writer.WriteLine("K: {0}", _k); 183for (int i = 0; i < _k; i++) 238writer.Write(_k); 241for (int i = 0; i < _k; i++) 269for (int i = 0; i < _k; i++) 282Contracts.Assert(_centroids.Length == _k); 283Utils.EnsureSize(ref centroids, _k, _k); 284for (int i = 0; i < _k; i++) 286k = _k;