1 write to NumAnomalies
Microsoft.ML.Data (1)
Evaluators\AnomalyDetectionEvaluator.cs (1)
291NumAnomalies++;
15 references to NumAnomalies
Microsoft.ML.Data (15)
Evaluators\AnomalyDetectionEvaluator.cs (15)
163numAnoms.Add(agg.AggCounters.NumAnomalies); 254if (NumAnomalies == 0 || NumAnomalies == NumExamples) 261drAtP = DetectionRate(sorted, (int)(p * (NumExamples - NumAnomalies)), out thresholdAtP); 262drAtNumPos = sorted.Take((int)NumAnomalies).Count(result => result.Label > 0) / (Double)NumAnomalies; 263thresholdAtNumPos = sorted.Take((int)NumAnomalies).Last().Score; 282Contracts.Assert(truePositives <= NumAnomalies); 284return (Double)truePositives / NumAnomalies; 326var max = P * (NumUpdates - NumAnomalies); 329if (max < NumAnomalies) 330max = NumAnomalies; 402var max = P * (NumUpdates - NumAnomalies); 405if (max < NumAnomalies) 406max = NumAnomalies;