17 instantiations of Heap
Microsoft.ML.Core (5)
Utilities\BinFinder.cs (1)
325_segmentHeap = new Heap<Segment>((a, b) => a.Energy < b.Energy);
Utilities\MinWaiter.cs (1)
60_waiters = new Heap<WaitStats>((s1, s2) => s1.Line > s2.Line);
Utilities\OrderedWaiter.cs (2)
55_waiters = new Heap<WaitStats>((s1, s2) => s1.Line > s2.Line); 66_waiters = new Heap<WaitStats>((s1, s2) => s1.Line > s2.Line);
Utilities\SupervisedBinFinder.cs (1)
311var intervals = new Heap<SplitInterval>((x, y) => x.Gain < y.Gain);
Microsoft.ML.Data (7)
Data\DataViewUtils.cs (1)
1197_mins = new Heap<CursorStats>((s1, s2) => s1.Batch > s2.Batch);
DataView\Transposer.cs (1)
553var heap = new Heap<KeyValuePair<int, int>>((p1, p2) => p1.Key > p2.Key || (p1.Key == p2.Key && p1.Value > p2.Value), _rbuff.Length);
Deprecated\Vector\VectorUtils.cs (2)
77var topHeap = new Heap<KeyValuePair<int, float>>((left, right) => right.Value < left.Value, top + 1); 78var bottomHeap = new Heap<KeyValuePair<int, float>>((left, right) => right.Value > left.Value, bottom + 1);
Evaluators\AnomalyDetectionEvaluator.cs (3)
334var heap = new Heap<Info>((info1, info2) => info1.Score > info2.Score); 374_examples = new Heap<Info>((info1, info2) => info1.Score > info2.Score); 457_topExamples = new Heap<TopExamplesInfo>((exampleA, exampleB) => exampleA.Score > exampleB.Score, topK);
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1963Heap<int> heap = new Heap<int>(
Microsoft.ML.KMeansClustering (2)
KMeansPlusPlusTrainer.cs (2)
1611heap = new Heap<WeightedPoint>((x, y) => x.Weight > y.Weight, numSamples); 1654finalHeap = new Heap<WeightedPoint>((x, y) => x.Weight > y.Weight, numSamples);
Microsoft.ML.Transforms (2)
LearnerFeatureSelection.cs (1)
234var heap = new Heap<float>((f1, f2) => f1 > f2, topk);
MutualInformationFeatureSelection.cs (1)
285var heap = new Heap<float>((f1, f2) => f1 > f2, topk);
25 references to Heap
Microsoft.ML.Core (4)
Utilities\BinFinder.cs (1)
317private readonly Heap<Segment> _segmentHeap; // heap used for dropping initial peg placement
Utilities\MinWaiter.cs (1)
48private readonly Heap<WaitStats> _waiters;
Utilities\OrderedWaiter.cs (1)
41private readonly Heap<WaitStats> _waiters;
Utilities\SupervisedBinFinder.cs (1)
311var intervals = new Heap<SplitInterval>((x, y) => x.Gain < y.Gain);
Microsoft.ML.Data (8)
Data\DataViewUtils.cs (1)
1152private readonly Heap<CursorStats> _mins;
DataView\Transposer.cs (1)
553var heap = new Heap<KeyValuePair<int, int>>((p1, p2) => p1.Key > p2.Key || (p1.Key == p2.Key && p1.Value > p2.Value), _rbuff.Length);
Deprecated\Vector\VectorUtils.cs (2)
77var topHeap = new Heap<KeyValuePair<int, float>>((left, right) => right.Value < left.Value, top + 1); 78var bottomHeap = new Heap<KeyValuePair<int, float>>((left, right) => right.Value > left.Value, bottom + 1);
Evaluators\AnomalyDetectionEvaluator.cs (4)
298private protected Info[] ReverseHeap(Heap<Info> heap) 334var heap = new Heap<Info>((info1, info2) => info1.Score > info2.Score); 364private readonly Heap<Info> _examples; 423private readonly Heap<TopExamplesInfo> _topExamples;
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1963Heap<int> heap = new Heap<int>(
Microsoft.ML.KMeansClustering (10)
KMeansPlusPlusTrainer.cs (10)
843Heap<KMeansUtils.WeightedPoint>[] buffer = null; 998Heap<KMeansUtils.WeightedPoint>[] buffer = null; 1597ref Heap<WeightedPoint>[] buffer) 1605Heap<WeightedPoint> outHeap = null; 1606var rowStats = ParallelMapReduce<Heap<WeightedPoint>, Heap<WeightedPoint>>( 1608(ref Heap<WeightedPoint> heap) => 1615(ref VBuffer<float> point, int pointRowIndex, Heap<WeightedPoint> heap, Random rand) => 1651(Heap<WeightedPoint>[] heaps, Random rand, ref Heap<WeightedPoint> finalHeap) =>
Microsoft.ML.Transforms (2)
LearnerFeatureSelection.cs (1)
234var heap = new Heap<float>((f1, f2) => f1 > f2, topk);
MutualInformationFeatureSelection.cs (1)
285var heap = new Heap<float>((f1, f2) => f1 > f2, topk);