1 write to _topExamples
Microsoft.ML.Data (1)
Evaluators\AnomalyDetectionEvaluator.cs (1)
457
_topExamples
= new Heap<TopExamplesInfo>((exampleA, exampleB) => exampleA.Score > exampleB.Score, topK);
14 references to _topExamples
Microsoft.ML.Data (14)
Evaluators\AnomalyDetectionEvaluator.cs (14)
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;
498
_topExamples
.Pop();
516
Host.Assert(
_topExamples
.Count == 0);
558
if (
_topExamples
.Count >= _topK)
560
var min =
_topExamples
.Top;
563
_topExamples
.Pop();
565
_topExamples
.Add(new TopExamplesInfo() { Score = score, Label = label, Name = name.ToString() });