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