38 references to OverallMetrics
Microsoft.ML.Data (38)
EntryPoints\InputBuilder.cs (7)
866public const string DrAtK = AnomalyDetectionEvaluator.OverallMetrics.DrAtK; 867public const string DrAtPFpr = AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr; 868public const string DrAtNumPos = AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos; 869public const string NumAnomalies = AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies; 870public const string ThreshAtK = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK; 871public const string ThreshAtP = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP; 872public const string ThreshAtNumPos = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos;
Evaluators\AnomalyDetectionEvaluator.cs (30)
119yield return new MetricColumn("DrAtK", OverallMetrics.DrAtK, canBeWeighted: false); 120yield return new MetricColumn("DrAtPFpr", OverallMetrics.DrAtPFpr, canBeWeighted: false); 121yield return new MetricColumn("DrAtNumPos", OverallMetrics.DrAtNumPos, canBeWeighted: false); 122yield return new MetricColumn("NumAnomalies", OverallMetrics.NumAnomalies, MetricColumn.Objective.Info, canBeWeighted: false); 123yield return new MetricColumn("ThreshAtK", OverallMetrics.ThreshAtK, MetricColumn.Objective.Info, canBeWeighted: false); 124yield return new MetricColumn("ThreshAtP", OverallMetrics.ThreshAtP, MetricColumn.Objective.Info, canBeWeighted: false); 125yield return new MetricColumn("ThreshAtNumPos", OverallMetrics.ThreshAtNumPos, MetricColumn.Objective.Info, canBeWeighted: false); 186overallDvBldr.AddColumn(OverallMetrics.DrAtK, NumberDataViewType.Double, drAtK.ToArray()); 187overallDvBldr.AddColumn(OverallMetrics.DrAtPFpr, NumberDataViewType.Double, drAtP.ToArray()); 188overallDvBldr.AddColumn(OverallMetrics.DrAtNumPos, NumberDataViewType.Double, drAtNumAnomalies.ToArray()); 189overallDvBldr.AddColumn(OverallMetrics.ThreshAtK, NumberDataViewType.Single, thresholdAtK.ToArray()); 190overallDvBldr.AddColumn(OverallMetrics.ThreshAtP, NumberDataViewType.Single, thresholdAtP.ToArray()); 191overallDvBldr.AddColumn(OverallMetrics.ThreshAtNumPos, NumberDataViewType.Single, thresholdAtNumAnomalies.ToArray()); 192overallDvBldr.AddColumn(OverallMetrics.NumAnomalies, NumberDataViewType.Int64, numAnoms.ToArray()); 716DataViewSchema.Column? numAnom = overall.Schema.GetColumnOrNull(AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies); 718throw Host.ExceptSchemaMismatch(nameof(overall.Schema), "number of anomalies", AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies); 726using (var cursor = overall.GetRowCursor(overall.Schema.Where(col => col.Name.Equals(AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies) || 757(kFormatName, AnomalyDetectionEvaluator.OverallMetrics.DrAtK), 758(pFormatName, AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr), 759(numAnomName, AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos) 767colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK); 768colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP); 769colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos); 783AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies, 784AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK, 785AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP, 786AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos); 805yield return new MetricColumn("DrAtK", AnomalyDetectionEvaluator.OverallMetrics.DrAtK, canBeWeighted: false); 806yield return new MetricColumn("DrAtPFpr", AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr, canBeWeighted: false); 807yield return new MetricColumn("DrAtNumPos", AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos, canBeWeighted: false);
Evaluators\Metrics\AnomalyDetectionMetrics.cs (1)
44DetectionRateAtFalsePositiveCount = FetchDouble(AnomalyDetectionEvaluator.OverallMetrics.DrAtK);