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)
221var centroids = new VBuffer<float>[_k]; 222for (int i = 0; i < _k; i++) 241KMeansPlusPlusInit.Initialize(Host, _numThreads, ch, cursorFactory, _k, dimensionality, 246KMeansRandomInit.Initialize(Host, _numThreads, ch, cursorFactory, _k, 252KMeansBarBarInitialization.Initialize(Host, _numThreads, ch, cursorFactory, _k, dimensionality, 260Host, _numThreads, ch, cursorFactory, totalTrainingInstances, _k, dimensionality, _maxIterations, 271return new KMeansModelParameters(Host, _k, centroids, copyIn: true);