2 writes to _numClusters
Microsoft.ML.Data (2)
Evaluators\ClusteringEvaluator.cs (2)
593_numClusters = numClusters; 611_numClusters = ctx.Reader.ReadInt32();
18 references to _numClusters
Microsoft.ML.Data (18)
Evaluators\ClusteringEvaluator.cs (18)
596var key = new KeyDataViewType(typeof(uint), _numClusters); 598_types[SortedClusterCol] = new VectorDataViewType(key, _numClusters); 599_types[SortedClusterScoreCol] = new VectorDataViewType(NumberDataViewType.Single, _numClusters); 612Host.CheckDecode(_numClusters > 0); 615var key = new KeyDataViewType(typeof(uint), _numClusters); 617_types[SortedClusterCol] = new VectorDataViewType(key, _numClusters); 618_types[SortedClusterScoreCol] = new VectorDataViewType(NumberDataViewType.Single, _numClusters); 637Host.Assert(_numClusters > 0); 638ctx.Writer.Write(_numClusters); 660var scoresArr = new Single[_numClusters]; 661int[] sortedIndices = new int[_numClusters]; 695var editor = VBufferEditor.Create(ref dst, _numClusters); 696for (int i = 0; i < _numClusters; i++) 709var editor = VBufferEditor.Create(ref dst, _numClusters); 710for (int i = 0; i < _numClusters; i++) 724var slotNamesType = new VectorDataViewType(TextDataViewType.Instance, _numClusters); 728sortedClusters.AddSlotNames(vectorSize, CreateSlotNamesGetter(_numClusters, "Cluster")); 731builder.AddSlotNames(vectorSize, CreateSlotNamesGetter(_numClusters, "Score"));