1 write to _k
Microsoft.ML.KMeansClustering (1)
KMeansPlusPlusTrainer.cs (1)
178
_k
= options.NumberOfClusters;
7 references to _k
Microsoft.ML.KMeansClustering (7)
KMeansPlusPlusTrainer.cs (7)
221
var centroids = new VBuffer<float>[
_k
];
222
for (int i = 0; i <
_k
; i++)
241
KMeansPlusPlusInit.Initialize(Host, _numThreads, ch, cursorFactory,
_k
, dimensionality,
246
KMeansRandomInit.Initialize(Host, _numThreads, ch, cursorFactory,
_k
,
252
KMeansBarBarInitialization.Initialize(Host, _numThreads, ch, cursorFactory,
_k
, dimensionality,
260
Host, _numThreads, ch, cursorFactory, totalTrainingInstances,
_k
, dimensionality, _maxIterations,
271
return new KMeansModelParameters(Host,
_k
, centroids, copyIn: true);