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)
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; 498_topExamples.Pop(); 516Host.Assert(_topExamples.Count == 0); 558if (_topExamples.Count >= _topK) 560var min = _topExamples.Top; 563_topExamples.Pop(); 565_topExamples.Add(new TopExamplesInfo() { Score = score, Label = label, Name = name.ToString() });