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
];
87
for (int i = 0; i <
_k
; i++)
102
_outputType = new VectorDataViewType(NumberDataViewType.Single,
_k
);
122
Host.CheckDecode(
_k
> 0);
126
_centroidL2s = new float[
_k
];
127
_centroids = new VBuffer<float>[
_k
];
128
for (int i = 0; i <
_k
; i++)
144
_outputType = new VectorDataViewType(NumberDataViewType.Single,
_k
);
157
var editor = VBufferEditor.Create(ref dst,
_k
);
167
Host.Assert(distances.Length >=
_k
);
170
for (int i = 0; i <
_k
; i++)
180
writer.WriteLine("K: {0}",
_k
);
183
for (int i = 0; i <
_k
; i++)
238
writer.Write(
_k
);
241
for (int i = 0; i <
_k
; i++)
269
for (int i = 0; i <
_k
; i++)
282
Contracts.Assert(_centroids.Length ==
_k
);
283
Utils.EnsureSize(ref centroids,
_k
,
_k
);
284
for (int i = 0; i <
_k
; i++)
286
k =
_k
;