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