50 references to Count
Microsoft.ML.Core (13)
Utilities\BinFinder.cs (1)
362Contracts.Assert(_segmentHeap.Count > 0);
Utilities\MinWaiter.cs (5)
80Contracts.Assert(_waiters.Count < _maxWaiters); 85Contracts.Assert(_waiters.Count < _maxWaiters); 103Contracts.Assert(_waiters.Count < _maxWaiters); 106Contracts.Assert(_maxWaiters == 0 || _waiters.Count < _maxWaiters); 113if (_waiters.Count == _maxWaiters)
Utilities\OrderedWaiter.cs (3)
110while (_waiters.Count > 0 && _waiters.Top.Line <= _currCleared) 125while (_waiters.Count > 0) 146while (_waiters.Count > 0)
Utilities\SupervisedBinFinder.cs (4)
317while (intervals.Count < _maxBins && intervals.Top.Gain > 0) 323bool isLastSplit = intervals.Count == _maxBins - 1; 332var binCount = intervals.Count; 337Contracts.Assert(intervals.Count == 0);
Microsoft.ML.Data (23)
Data\DataViewUtils.cs (1)
1284if (_mins.Count == 0)
DataView\Transposer.cs (2)
601Ch.Assert(heap.Count == 0); 612while (heap.Count > 0)
Deprecated\Vector\VectorUtils.cs (10)
90if (bottomHeap.Count == bottom && value > bottomHeap.Top.Value) 94if (bottomHeap.Count > bottom) 97Contracts.Assert(bottomHeap.Count == bottom); 103if (topHeap.Count == top && value < topHeap.Top.Value) 107if (topHeap.Count > top) 110Contracts.Assert(topHeap.Count == top); 115var newCount = topHeap.Count + bottomHeap.Count; 118while (topHeap.Count > 0) 125while (bottomHeap.Count > 0)
Evaluators\AnomalyDetectionEvaluator.cs (10)
300var res = new Info[heap.Count]; 301while (heap.Count > 0) 302res[heap.Count - 1] = heap.Pop(); 492NumTopExamples = _topExamples.Count; 493while (_topExamples.Count > 0) 495Names[_topExamples.Count - 1] = _topExamples.Top.Name.AsMemory(); 496Scores[_topExamples.Count - 1] = _topExamples.Top.Score; 497Labels[_topExamples.Count - 1] = _topExamples.Top.Label; 516Host.Assert(_topExamples.Count == 0); 558if (_topExamples.Count >= _topK)
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1989while (heap.Count > 0)
Microsoft.ML.KMeansClustering (6)
KMeansPlusPlusTrainer.cs (6)
1638if (heap.Count == numSamples && key <= heap.Top.Weight) 1642if (heap.Count == numSamples) 1658host.Assert(heaps[i].Count <= numSamples, "heaps[i].Count must not be greater than numSamples"); 1659while (heaps[i].Count > 0) 1662if (finalHeap.Count < numSamples) 1673if (outHeap.Count != numSamples)
Microsoft.ML.Transforms (7)
LearnerFeatureSelection.cs (3)
241if (heap.Count < topk) 245Contracts.Assert(heap.Count == topk); 255while (heap.Count > 0)
MutualInformationFeatureSelection.cs (4)
293if (heap.Count < topk) 300Contracts.Assert(heap.Count == topk); 307var threshold = heap.Count < topk ? 0 : heap.Top; 311while (heap.Count > 0)